or# Interleaved order while ( /($a|$d)/g ) { print "$1\n"; }
# Original order. Note that $1 is now $_. for ( /($a)/g, /($d)/g ) { print "$_\n"; }
In reply to Re: while loop with logical or
by Util
in thread while loop with logical or
by perlkiller
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |