my $newstr = eval "qq{$str}"; [download]
In reply to Re: Interpolating variables in a string by borisz in thread Interpolating variables in a string by saintmike