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

DWIM is Perl's answer to Gödel

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
    Well, you hit me at the "regardless" part then :-)

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!