[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    [ruby-talk:29892] Re: string variables within strings
From:       Paul Brannan <paul () atdesk ! com>
Date:       2001-12-31 20:31:42
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic