1. tidy up AUTOLOAD
[spider.git] / perl / Prefix.pm
index 6f1c1f29a8849f23b4f753d6ab02eae75a905435..1e6e50c2d2e97baa42b7f8dc776b693113bf7d8f 100644 (file)
@@ -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;
 }
 
 #