|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: How does next label work?by moritz (Cardinal) |
| on Jan 06, 2013 at 10:04 UTC ( #1011869=note: print w/ replies, xml ) | Need Help?? |
|
I thought next is just another way to say goto Well, it's not. You can see that next and goto compile to different ops internally:
Another difference is this warning here:
which you don't get with goto. And of course the fact that the code above terminates, but doesn't if you replace 'next' with 'goto'.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||