in reply to Comparing hash keys and values with Regular Expressions

Look at dialup spam removal with Net::POP3 and see what are called pre-compiled regexes from an array of strings. Aristotle shows improved code, in his response. But the idea is to make precompiled regexes one time from your strings, then you loop thru your data only one time, checking all lines against the precompiled regexes.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Comparing hash keys and values with Regular Expressions