in reply to (Ovid) RE(2): Perlmonks Code Proxy
in thread Perlmonks Code Proxy

If you want to have the variable contents being interpreted as a string literal rather than regex chars, the perlfunc:quotemeta function is useful.