in reply to Re: cross scope gotos?
in thread cross scope gotos?
> Basically anywhere in the current program that hasn't been optimised away:
not that easy!
perl -e' goto INTO; print "Start"; for $i (0..9) { INTO: print "STOP"; };' Can't "goto" into the middle of a foreach loop at -e line 4.
You can't jump to a label out of the current or previous frames!
see Re^3: cross scope gotos? and goto
Cheers Rolf
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: cross scope gotos?
by BrowserUk (Patriarch) on Apr 06, 2010 at 16:04 UTC | |
by LanX (Saint) on Apr 06, 2010 at 16:09 UTC | |
by ikegami (Patriarch) on Apr 06, 2010 at 16:36 UTC | |
by LanX (Saint) on Apr 06, 2010 at 21:12 UTC |
In Section
Seekers of Perl Wisdom