First argument should be object reference when you call object method:
sub AUTOLOAD { my $self = shift; my $method = $self->something_clever_returning_method_ref(); # or my $method = something_clever_returning_method_ref($self); # or whatever goto &$method($self); }
_
_
_
_
_
_
M
i
c
h
a
e
l
In reply to Re: Re: goto and AUTOLOADed methods
by nite_man
in thread goto and AUTOLOADed methods
by fergal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |