Actually the continue block is not executed for a redo. Consider:
use warnings; use strict; my $yodda = 0; while ($yodda < 4) { redo if ++$yodda & 1; print "Even is "; } continue { print "$yodda\n"; }
Prints:
Even is 2 Even is 4
In reply to Re^2: What could be the exact usage of While - continue loop
by GrandFather
in thread What could be the exact usage of While - continue loop
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |