|
|
| more useful options | |
| PerlMonks |
Re^5: How does 'goto LABEL' search for its label? (yow!)by tye (Cardinal) |
| on Jan 17, 2013 at 04:07 UTC ( #1013699=note: print w/ replies, xml ) | Need Help?? |
|
I didn't say it should be disallowed. I said it is squirrely. In particular, it is easy to see doing this by accident. So it is appropriate to issue a warning which even provides the opportunity to add a line indicating "yes, I really did intentionally use 'goto' to exit this subroutine". And die is a less squirrely way to unwind a stack. - tye
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||