Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: while loop with logical or

by Util (Priest)
on Dec 19, 2011 at 22:29 UTC ( #944313=note: print w/replies, xml ) Need Help??


in reply to while loop with logical or

# Interleaved order while ( /($a|$d)/g ) { print "$1\n"; }
or
# Original order. Note that $1 is now $_. for ( /($a)/g, /($d)/g ) { print "$_\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://944313]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-05-30 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (173 votes). Check out past polls.

    Notices?