in reply to Most recent pattern match
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Most recent pattern match
by Anonymous Monk on Jan 27, 2006 at 11:07 UTC | |
by GrandFather (Saint) on Jan 27, 2006 at 19:15 UTC |