Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: AUTOLOAD not following @ISA as expected

by dave_the_m (Monsignor)
on Aug 02, 2005 at 22:17 UTC ( [id://480307]=note: print w/replies, xml ) Need Help??


in reply to Re^2: AUTOLOAD not following @ISA as expected
in thread AUTOLOAD not following @ISA as expected [solved]

Yes, that is what I mean
In that case I think you want to replace sub {goto \&{$#_ ? $set : $get}}; with
sub { my $self = shift; @_ ? $self->$set(@_) : $self->$get(@_) };
or
sub { goto &{$_[0]->can($#_ ? $set : $get)} };

Dave.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480307]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-04-24 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found