But seriously, looking to use a goto is generally a sign that your program logic is flawed, and perhaps some re-thinking is in order.
Update: I didn't realise (until I saw the response from monarch) that you had updated your original question with the example - obviously meant as a reply to this node. However, I still stand by what I said above. I've only been using Perl for a couple of years, but in that time I've never used a goto. I've no doubt that there may be the very odd situation where it's use is warranted, but I've yet to encounter one.
Cheers,
Darren :)
In reply to Re: Go to?
by McDarren
in thread Go to?
by Ronnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |