From: Peter Bailey Date: 2006-05-04T22:53:39+09:00 Subject: Re: problems ftp'ing with RUBY Daniel Baird wrote: > On 5/4/06, Peter Bailey wrote: >> >> You mean, I shouldn't have it in quotes, right? Or, should I use >> (#{indexfile})? I have been told in the past to use that #{ >> nomenclature. Now I see why. Thank you! > > > > The #{var} syntax is for embedding a variable in a string. > > str = "Hello #{username}, welcome to the Bat Cave." > > if you're not in a string, don't use #{var}, the unadorned variable name > will give you the variable. > > say_hello_to(username) > > > Cheers > > ;Daniel Still now working. But, I appreciate very much your explanation of #{}. It helps a lot. -- Posted via http://www.ruby-forum.com/.