in reply to while loop with logical or
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 Section
Seekers of Perl Wisdom
in reply to while loop with logical or
or# Interleaved order while ( /($a|$d)/g ) { print "$1\n"; }
# Original order. Note that $1 is now $_. for ( /($a)/g, /($d)/g ) { print "$_\n"; }
|
---|