in reply to Re: Array within regexp?
in thread Array within regexp?
Correct. However, if you mean the array to contain plain strings you want to match literally, you need to tell that to perl, otherwise it will try to interpret them as regexen, such as interpretting dots in the strings to match any character.
$alt_titles = join '|', map quotemeta, @titles;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Array within regexp?
by jfrm (Monk) on Feb 27, 2012 at 11:12 UTC | |
by GrandFather (Saint) on Feb 27, 2012 at 21:24 UTC |