in reply to reinterpolation of regexp (and strings?)

$data=~s#$r#$s#

How about

$data=~s#$r#$s#e
?

-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re^2: reinterpolation of regexp (and strings?)
by ikegami (Patriarch) on Jul 23, 2008 at 07:17 UTC
    No, that will treat $s as a Perl expression, which will return its value, exactly like $data=~s#$r#$s#.