|Perl Monk, Perl Meditation|
Re: How does next label work?by LanX (Chancellor)
|on Jan 06, 2013 at 09:49 UTC||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