if (string =~ m//) { print "match\n"; } else print "no match"; }