in reply to goto superclass method
You were almost there, just give that goto code dereference a code reference as produced by can e.g
Sorry if this repeats what was said above but all those replies were making me cross-eyed.sub dostuff { goto &{ $_[0]->can('SUPER::dostuff') } if $condition; # ... }
HTH
_________
broquaint
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: goto superclass method
by Aristotle (Chancellor) on Dec 26, 2004 at 18:44 UTC | |
•Re^2: goto superclass method
by merlyn (Sage) on Dec 23, 2004 at 12:03 UTC | |
by Anonymous Monk on Dec 26, 2004 at 17:45 UTC |
In Section
Seekers of Perl Wisdom