X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FPrefix.pm;h=1e6e50c2d2e97baa42b7f8dc776b693113bf7d8f;hb=7b616aeabce92e3cb416a5fe6640a288adfe5410;hp=6f1c1f29a8849f23b4f753d6ab02eae75a905435;hpb=cb20a908914a9b9df907a63551312a69dfe884b5;p=spider.git diff --git a/perl/Prefix.pm b/perl/Prefix.pm index 6f1c1f29..1e6e50c2 100644 --- a/perl/Prefix.pm +++ b/perl/Prefix.pm @@ -453,7 +453,6 @@ my %valid = ( sub AUTOLOAD { - my $self = shift; no strict; my $name = $AUTOLOAD; @@ -464,7 +463,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, @_); + goto &$AUTOLOAD; } #