Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: creating a regular expression's alternation dynamically?by integral (Hermit) |
on Aug 06, 2004 at 14:39 UTC ( [id://380572]=note: print w/replies, xml ) | Need Help?? |
In the join, you might want to map quotemeta over @list so that any meta-chars (particulary |) get escaped. Also you have to be careful that none of the strings are prefixes of another string, otherwise you'll find that ordering is significant in an alternation.
In Section
Seekers of Perl Wisdom
|
|