Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: /o is dead, long live qr//!

by japhy (Canon)
on Jun 25, 2003 at 23:43 UTC ( #269055=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<>) {
      for my $p (qr/a+b/, qr/c+d/, qr/e+f/) { foo() if /$p/ }
    ...
    while (<>) {
      for my $s ('a+b', 'c+d', 'e+f') { foo() if /$s/ }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-07-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls