in reply to Re^2: Interpolating variables in a string
in thread Interpolating variables in a string

then do it like the first poster suggest:
( my $newstr = $str ) =~ s/(\$\w+)/$1/eeg;
Boris