Here is the same code with the continue block
No. Those two snippets are different. The first only does ++$counter when $thingy ne 'PARTY'. The second does ++$counter unconditionally.
my $limit = 3; my @work_queue = qw( a PARTY b c d); sub some_function { $_[0] } ... print(scalar(@work_queue), "\n");
Prints 1 for the first snippet and 2 for the second.
In reply to Re^2: use of 'continue' block for while/until
by ikegami
in thread use of 'continue' block for while/until
by jeepj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |