in reply to Re: Matching words
in thread Matching words
my $req_regx = join( '|', @required );
This is ok for the "pure" words given in the example, but there may be trouble if naughty regex metacharacters like * + ? ( ) [ ] etc. infiltrate the word list. See haukex's article Building Regex Alternations Dynamically for a thorough discussion of this technique.
Give a man a fish: <%-{-{-{-<
|
|---|