X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FPrefix.pm;h=1e6e50c2d2e97baa42b7f8dc776b693113bf7d8f;hb=171f9837d8bb99d05c2b3bb87066d25d448eabd3;hp=6f1c1f29a8849f23b4f753d6ab02eae75a905435;hpb=b00e85c55392ddf0593b681d7187e4c4e158568e;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; } #