Every time through the loop the last say statement executes--except the last time through the loop. Why?
Your explicit call to continue inhibits the implicit call to break or next at the end of the when-block.
Also, "Learning Perl 5th" says there is an implicit break at the end of each when block, but I get errors if I do this:
It seems that if you use for instead of given as the outer control structure, it defaults to next instead of break.
In reply to Re: given-when last time through loop?
by moritz
in thread given-when last time through loop?
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |