From: Peter Date: 2003-09-17T20:28:30+09:00 Subject: Re: #{} and \" don't like each other > I suppose all such programs have warned during 1.8.0 period. Well, it's not only about warnings. This is a transcript of a ruby session: irb(main):001:0> print "\n" irb(main):002:-1/ mumble irb(main):003:-1/ jumble irb(main):004:-1/ / (irb):1: warning: escaped terminator '"' inside string interpolation SyntaxError: compile error (irb):4: unterminated string meets end of file (irb):4: syntax error from (irb):4 irb(main):005:0> There's the warning about the escaped '"', but also an error since I get stuck in a regular expression because of the / in . If I put the print statement in a file and run ruby on it, it joyfully produces this: test.rb:1: warning: escaped terminator '"' inside string interpolation Still a warning, but no syntax error. The '\"' just becomes a '"' and then '" name=\"" + name + "\""' is just interpreted as 3 strings in a row. So there's a difference in parser behavior in irb and in ruby. Just so you'd know. Peter