From: Chad Fowler Date: 2001-12-30T04:57:01+09:00 Subject: [ruby-talk:29645] Re: putting contents of variable into a string Paul Vallance wrote: > Dear ruby users > > This doesn't work in ruby 1.6.5 in windows. If I receive some data > from a TCP server and put it into a variable (v), remove some trailing > text and a carriage return, and then try to put the contents of v (#v) > into a subsequent send string ( "/ispicbox(#v)\n" ) I get nothing > returned from my server (ie @boxtype = nil). Have cross checked my > server softwares and its OK. > Maybe I'm missing something, but shouldn't you be using "/ispicbox{#v}\n" instead of "/ispicbox(#v)\n"? Chad