in reply to efficient method of matching a string against a list of substrings?
my $re = join '|', @sub; $re = qr/($re)/; $str =~ $re;
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: efficient method of matching a string against a list of substrings?
by diggler (Initiate) on May 05, 2005 at 00:53 UTC |