![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: next in block in foreach-loopby danger (Priest) |
on Apr 22, 2002 at 16:03 UTC ( #161083=note: print w/replies, xml ) | Need Help?? |
A bare block is a loop that executes once but obeys loop control statements such as last, next, and redo. Thus, when you next in the bare-block inside your loop, you are next'ing out of the bare-block, not the outer loop.
In Section
Seekers of Perl Wisdom
|
|