Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: File::Find find several strings in one directory

by stevieb (Canon)
on May 09, 2017 at 17:24 UTC ( [id://1189926]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    for (@strings){
        say "yay!" if /(?:\bAlice\b|\bBob\b|\bChris\b)/;
    }
    
  2. or download this
    /
      (?:         # group, but don't capture
    ...
        \bChris\b # same as Alice and Bob
      )           # end grouping
    /
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found