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.
In reply to Re: Fast/efficient way of check if a string in an strArr is contained in a line
by GrandFather
in thread Fast/efficient way of check if a string in an strArr is contained in a line
by cpomp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |