$_ !~ m/(foo|bar)/ #### $_ =~ m/$pattern/