However, commonsense tells me that if theres a large number of patterns thats going to be really slow. Is there, in the classic Perl sense, another way to do it?foreach $pattern (@patterns)) { if ($input =~ /$pattern/) { print $pattern; } }
In reply to More than one regexp. by onion2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |