From: Michael Witrant Date: 2001-10-28T23:45:02+09:00 Subject: [ruby-talk:23683] Re: How to get a String to interpolate itself? On Sun, 28 Oct 2001 10:19:17 +0900, ptkwt@shell1.aracnet.com (Phil Tomson) wrote: > I'm trying to read lines from a file that might contain something like: > Here is a line with a variable to interpolate: #{var} > I'd like to get: > Here is a line with a variable to interpolate: 99 > var = 99 > File.foreach("junk.rbt") {|line| puts eval(line.inspect) > } > Mike.