foreach my $line () { next if (grep{$line =~ /\Q$_\E/}@list); print $line; }