From: Sebastian Hungerecker Date: 2007-05-18T23:38:23+09:00 Subject: Re: Beginner question jim o wrote: > What does the "#{ }" do for you? I think what I am missing is the feature > provided by having that as a wrapper vs bare. You can't use bare variables inside a string. x=7 puts "The number is x" This will return (of course) print out "The number is x" because ruby has no way of knowing that you actually wanted it to print out the value of the variable x instead of a literal x. If you however put #{} around the x, it will be substituted with the value of x. That's the point of the #{}. There's however no point to pass a string to puts that only contains a #{} because than you could as well just pass the variable to puts. -- Ist so, weil ist so Bleibt so, weil war so