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.
In reply to Re^9: goto superclass method
by Aristotle
in thread goto superclass method
by avarus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |