in reply to •Re^8: goto superclass method
in thread goto superclass method
goto seems to do the expected thing when you give it a coderef.
$ perl -le'my $foo = sub { print "bar" }; sub x { goto $foo } print "$ +foo"; x' CODE(0x813bc08) bar
I don't think there's any doubt about what's happening here.
Oh, also, none of my previous examples change at all in behaviour if you use the goto &{ ... } notation instead.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re^10: goto superclass method
by merlyn (Sage) on Dec 23, 2004 at 00:30 UTC | |
by Aristotle (Chancellor) on Dec 23, 2004 at 00:40 UTC |