X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXChannel.pm;h=9ef0cec243671b78dafffd5ab306cb7c33cc3d4c;hb=7b616aeabce92e3cb416a5fe6640a288adfe5410;hp=aae692efb52e4f31230c0b04b118765ee3236775;hpb=cb20a908914a9b9df907a63551312a69dfe884b5;p=spider.git diff --git a/perl/DXChannel.pm b/perl/DXChannel.pm index aae692ef..9ef0cec2 100644 --- a/perl/DXChannel.pm +++ b/perl/DXChannel.pm @@ -626,7 +626,6 @@ sub broadcast_list #no strict; sub AUTOLOAD { - my $self = shift; no strict; my $name = $AUTOLOAD; return if $name =~ /::DESTROY$/; @@ -637,9 +636,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; }