http://qs321.pair.com?node_id=956421


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;