in reply to regex special chars

/\Q$literal_string\E/
See perldoc -f quotemeta

The PerlMonk tr/// Advocate