|
|
| No such thing as a small change | |
| PerlMonks |
Re: How does next label work?by LanX (Monsignor) |
| on Jan 06, 2013 at 09:49 UTC ( #1011865=note: print w/ replies, xml ) | Need Help?? |
|
Naked blocks are documented as being internally implemented as loops which are only executed once.¹ next is a loop control which reevaluates the condition, which is false now. It's no goto, you can only use if for lables just in front of loop-starts, OTOH gotos can jump to any lables in the same scope. For your purpose better try redo or real gotos
Cheers Rolf UPDATES: ¹)from perlsyn
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||