Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Desparate behavior in loop labelsby Errto (Vicar) |
on Aug 29, 2007 at 03:05 UTC ( [id://635718]=note: print w/replies, xml ) | Need Help?? |
Here is an example:
This script will stop printing after "3". This is because calling last from inside foo jumps out of the loop it's in, even though that loop is defined in bar. By contrast, in languages like C or Java, the equivalent calls (break and continue) are simply illegal outside loops.
In Section
Seekers of Perl Wisdom
|
|