$string = "abcd"; # $input = "d"; OK # $input = "("; ERROR if($string =~ m/($input)/){ print "The string is $string\n"; } [download]
In reply to Problems with matching and metacharacters by Anonymous Monk