in reply to Best approach to creating a regex from a filehandle
'(?:' . join(')|(?:', @blacklist_words) . ')' [download]
But, if the "words" can contain non-alphabetical characters with special meaning in regexes, you might need to map quotemeta to each word.