I already tried that, but it didn't work for me, don't know why. The \Q$pattern\E worked so my problem is solved.
Petri > 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>
