From: Paul Brannan Date: 2002-01-01T05:31:42+09:00 Subject: [ruby-talk:29892] Re: string variables within strings On Tue, Jan 01, 2002 at 05:23:14AM +0900, Paul Vallance wrote: > so when sending... > t.send("/gettext( #{v} ,#{v1} ,0)\n",0) > My TCP server responds saying that there are not enough parameters! > > However, if I send this instead... > tsend("/gettext(720,735,0)\n",0) > > my TCP server responds correctly. all I'm doing here is replacing #{v} > with its contents and #{v1} with its contents. The first thing I notice here is that: "/gettext( #{v} ,#{v1} ,0)\n" should produce: "/gettext( 720 ,735 ,0)\n" which is different from: "/gettext(720,735,0)\n" Are you sure that the server is handling the extra spaces correctly? Paul