projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
severe munging of code in prepartion for newprotocol
[spider.git]
/
perl
/
Route.pm
diff --git
a/perl/Route.pm
b/perl/Route.pm
index 387407669583ff325644bbc51d9517d1fc215de6..a9f80fea4e3afe8b1e546c88444fd202467141f8 100644
(file)
--- a/
perl/Route.pm
+++ b/
perl/Route.pm
@@
-380,7
+380,6
@@
sub field_prompt
#
sub AUTOLOAD
{
#
sub AUTOLOAD
{
- my $self = shift;
no strict;
my $name = $AUTOLOAD;
return if $name =~ /::DESTROY$/;
no strict;
my $name = $AUTOLOAD;
return if $name =~ /::DESTROY$/;
@@
-390,10
+389,9
@@
sub AUTOLOAD
# this clever line of code creates a subroutine which takes over from autoload
# from OO Perl - Conway
# 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}};
+
goto &$AUTOLOAD
;
-# @_ ? $self->{$name} = shift : $self->{$name} ;
}
1;
}
1;