http://www.perlmonks.org?node_id=348840


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