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

Re: Multiple regex against files with speed

by Roy Johnson (Monsignor)
on Apr 28, 2004 at 14:34 UTC ( #348840=note: print w/ replies, xml ) Need Help??


in reply to Multiple regex against files with speed

I'm curious about why you're using a hash as an array instead of using an array.

Note that you'll need to convert your glob patterns to actual regexes if you want to do regex matching.

Stringing the regexes together is more naturally done with join than with a foreach loop and concatenation.


The PerlMonk tr/// Advocate


Comment on Re: Multiple regex against files with speed

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (17)
As of 2015-07-29 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls