From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2001-10-31T16:56:00+09:00 Subject: [ruby-talk:23923] Re: question about string interpolation and '#{}' In article , Phil Tomson wrote: >I think I'm really trying to do some strange things with string >interpolation and I'm not sure if what I want to do is completly >possible... > [snip] > >I'm not sure why this is changing the outcome. I would think that the >parser, as called by eval, should be able to handle the newlines just as it >does in a regular ruby program. What am I missing? Oh, I think the '/n's in the string are not interpolated and end up looking like regex's: 'blah /n ..blah.. /n...' Part of the problem can be solved by doing: eval filestring.inspect.gsub(/\\n/,"\n") PHil