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;
In reply to Re^3: while(){}continue{}; Useful? (Consistent!)
by BrowserUk
in thread while(){}continue{}; Useful?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |