in reply to Re^2: while(){}continue{}; Useful? (Consistent!)
in thread while(){}continue{}; Useful?
This produces identical results, and IMO is far clearer and more intuative:
$\="\n"; while (my $x= < 1 2 3 4 >) { # using glob as iterator unless( $x%2 ) { print "$x: chacha" } print "$x: rumba" } print $x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: while(){}continue{}; Useful? (Consistent!)
by LanX (Saint) on Mar 04, 2010 at 00:24 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2010 at 01:16 UTC | |
by LanX (Saint) on Mar 04, 2010 at 01:22 UTC |