XP is just a number | |
PerlMonks |
Re^2: Interpolate into replacement with s//?by ikegami (Patriarch) |
on Nov 09, 2011 at 20:43 UTC ( [id://937217]=note: print w/replies, xml ) | Need Help?? |
$replace contains a template. Therefore, you need a template engine to process it. The only existing template module I know that can process that language is String::Interpolate. (Yeah, it has a weird interface.) Alternatively, if $replace actually contained a string literal (i.e. Perl code), you could use eval to evaluate it.
In Section
Seekers of Perl Wisdom
|
|