X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FProt.pm;h=23de1538198bf2c72aa3764d7f3856c41e7868a5;hb=0a81dd5596a3bd7746f00bad8f7c61b8d823a2ac;hp=17e3d517edbee50a14ddf3b5ada207877ca93762;hpb=8178d787d7cc8040fa8958197582bba5c80e6f59;p=spider.git diff --git a/perl/Prot.pm b/perl/Prot.pm index 17e3d517..23de1538 100644 --- a/perl/Prot.pm +++ b/perl/Prot.pm @@ -53,8 +53,6 @@ sub new sub AUTOLOAD { -# no strict "refs"; - my $self = shift; no strict; my $name = $AUTOLOAD; return if $name =~ /::DESTROY$/; @@ -62,9 +60,7 @@ sub AUTOLOAD confess "Non-existant field '$AUTOLOAD'" if !$valid{$name}; *$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;