in reply to Re: Sanitizing strings as regexes
in thread Sanitizing strings as regexes

Also look for quotemeta, the big brother of \Q$string\E, in perlfunc and perlre (and also perlretut and perlrequick).