in reply to Grep lines from a text file, compare to an array using regex?
my $pattern = join '|', map quotemeta, @lines; $pattern = qr/^(?:$pattern)$/; [download]