From: dagbrown@... (Dave Brown) Date: 2003-09-17T11:13:36+09:00 Subject: Re: #{} and \" don't like each other In article , Peter wrote: : From the Programming Ruby book: : : In addition, you can substitute the value of any Ruby expression : into a string using the sequence #{ expr }. : : : Up to about an hour ago, I never doubted this statement. I've stumbled : upon the following example which is not accepted by ruby. The following : piece of code works perfectly, as to be expected: : : name = "peter" : temp = "name=\"" + name + "\"" : print "" : : This prints exactly what I want it to print, namely: : : : : One would expect that substituting the RHS of the assignment to temp for : temp in the third statement, would work as well: : : name = "peter" : print "" Okay, I think the problem is this: print "" (Or, if this is supposed to be XML, "" ;-) ) --Dave