Petri Rautakoski wrote:


$text =~ s|for example \(this\)|$toBeReplaced|;


works fine, but how can I backslash the metacharacters in a scalar?

Lookup "quotemeta"


qr//;

-Bill-
__Sx__________________________________________
http://youve-reached-the.endoftheinternet.org/

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to