X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUser.pm;h=dec317a1928623ca40e004819cd473fdb53bda53;hb=7b616aeabce92e3cb416a5fe6640a288adfe5410;hp=cf847bc897778748295e61aa41d15962a8ef83a3;hpb=070310c653f25c63a719396a32c216b5ce8b9dee;p=spider.git diff --git a/perl/DXUser.pm b/perl/DXUser.pm index cf847bc8..dec317a1 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -91,7 +91,6 @@ $lrusize = 2000; #no strict; sub AUTOLOAD { - my $self = shift; no strict; my $name = $AUTOLOAD; @@ -102,12 +101,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}} ; -# if (@_) { -# $self->{$name} = shift; -# } -# return $self->{$name}; + goto &$AUTOLOAD; } #use strict;