in reply to
Edit in place (part2)
$myvar may have meta characters. See the quotemeta function, i.e.
$myvar = quotemeta(somesub());
-imran
Comment on
Re: Edit in place (part2)
Download
Code
Replies are listed 'Best First'.
Re^2: Edit in place (part2)
by
ikegami
(Patriarch)
on May 01, 2006 at 21:24 UTC
No,
$myvar
can safely contain any character. You only need to escape text interpolated into the regexp, not the replace string.
[reply]
[d/l]
In Section
Seekers of Perl Wisdom