in reply to
how to evaluate a variable in a string?
Similar to
fglock
's first answer except for the variation:
$file=~s/$from/eval'"'.$to.'"'/sge;
[download]
Comment on
Re: how to evaluate a variable in a string?
Download
Code
In Section
Seekers of Perl Wisdom