X: { print "hello\n"; next X; }
I thought next is just another way to say goto,
and I was expecting the above code to go into infinite loop, but actually the block only executes once.
How does next label work actually?
In reply to How does next label work? by PerlOnTheWay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |