in reply to Fast/efficient way of check if a string in an strArr is contained in a line

If you allow pattern matches try Regexp::Match::List or if you are working with literal matches try Regexp::List. You can then replace your check_bypass call with $line =~ $combinedRegex having previously built $combinedRegex using the module.


Perl reduces RSI - it saves typing
  • Comment on Re: Fast/efficient way of check if a string in an strArr is contained in a line
  • Download Code