in reply to Interpolating variables from a file

Is this what you want?
$u='fool';
$line='oh you $u'; 
print $line;
# outputs => oh you $u
eval "print qq($line);"
# outputs => oh you fool
Cheers
alf
  • Comment on Re: Interpolating variables from a file