my $re = join '|', @sub; $re = qr/($re)/; $str =~ $re;
Dave.
In reply to Re: efficient method of matching a string against a list of substrings?
by dave_the_m
in thread efficient method of matching a string against a list of substrings?
by diggler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |