Actually my $regex = qr(join '|', map "\Q$_\E", @vals) will optimize the pattern matchingHrm, that's debatable, check out diotalevi's reply in meaning of /o in regexes.
_________
broquaint
In reply to Re: Re: Re: Dynamic regexp from array values
by broquaint
in thread Dynamic regexp from array values
by Heidegger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |