in reply to Edit in place (part2)

$myvar may have meta characters. See the quotemeta function, i.e. $myvar = quotemeta(somesub());
-imran

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.