Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by stevieb (Canon)
on May 09, 2017 at 17:24 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-10-01 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (1 votes). Check out past polls.

    Notices?