my $x=quotemeta($_); __END__ "test1" exists in "test1 test2(X)" "test2\(X\)" exists in "test1 test2(X)"