in reply to Replace strings with "("

Are you sure you have the correct match string? There's no whitespace or unprinted characters in there? What does
warn("string matches") if $string =~ /test\("test/;
do?