Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
The stupid question is the question not asked
 
PerlMonks  

Multiple regex against files with speed

by crabbdean (Pilgrim)
on Apr 28, 2004 at 13:06 UTC ( #348807=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $found = 0;
    $hash{1} = '*.doc';
    ...
    map {
         $found = 1 if $file =~ /$_/;
    } values(%hash);
    
  2. or download this
    $found = 0;
    $hash{1} = '*.doc';
    ...
         $string .= $_ . "|";
    }
    $found = 1 if $file =~ /$string/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-04-25 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (579 votes), past polls