Why not just:
my $regexp = Regexp::List ->new(modifiers => 'i',quotemeta => 0) ->lis +t2re(@patterns); if ($string =~ /$regexp/) { if (string =~ /insert|delete|update/i) { do something with $string }
In reply to Re: Most recent pattern match
by GrandFather
in thread Most recent pattern match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |