|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: How does 'goto LABEL' search for its label? (do-blocks)by LanX (Monsignor) |
| on Jan 17, 2013 at 18:50 UTC ( #1013854=note: print w/ replies, xml ) | Need Help?? |
|
> As for there being a new warning for if(1){X:...} goto X:, I lack the details for why this got deprecated. It's analogous to if(0) the constant block is optimized to a do-block¹ ...
... which seems to fall into the same category like other loop-like-blocks: ATM I have only 5.10 available. Could someone please test this with >= 5.12?
EDIT: removed exit
Updatehere test code w/o endless looping.
UpdateThanks to davido for testing
Cheers Rolf ¹) which is somehow strange, I expected a simple bare block.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||