in reply to Re: What could be the exact usage of While - continue loop
in thread What could be the exact usage of While - continue loop
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What could be the exact usage of While - continue loop
by naikonta (Curate) on May 09, 2007 at 04:58 UTC |