in reply to goto and AUTOLOADed methods
Though your die stringify's the object, which might look weird to some.sub AUTOLOAD { my $self = $_[0]; my $m = something_clever_returning_method_name(); my $sub = $self->can($m) || $self->can("AUTOLOAD"); die "Can't call $m on $self" unless defined($sub); goto &$sub; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: goto and AUTOLOADed methods
by Anonymous Monk on Aug 01, 2003 at 13:24 UTC |