X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FDXMsg.pm;fp=perl%2FDXMsg.pm;h=5773c7e966b463b6f43397f525a2d3ad828f1e42;hb=7b616aeabce92e3cb416a5fe6640a288adfe5410;hp=e90a6bb170b89f9a12587fc7fcc3b730ce7dd16e;hpb=cb20a908914a9b9df907a63551312a69dfe884b5;p=spider.git diff --git a/perl/DXMsg.pm b/perl/DXMsg.pm index e90a6bb1..5773c7e9 100644 --- a/perl/DXMsg.pm +++ b/perl/DXMsg.pm @@ -1518,7 +1518,6 @@ sub import_one #no strict; sub AUTOLOAD { - my $self = shift; no strict; my $name = $AUTOLOAD; return if $name =~ /::DESTROY$/; @@ -1528,9 +1527,7 @@ sub AUTOLOAD # this clever line of code creates a subroutine which takes over from autoload # from OO Perl - Conway *$AUTOLOAD = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}}; - &$AUTOLOAD($self, @_); -# *{$AUTOLOAD} = sub {@_ > 1 ? $_[0]->{$name} = $_[1] : $_[0]->{$name}} ; -# @_ ? $self->{$name} = shift : $self->{$name} ; + goto &$AUTOLOAD; } 1;