From: "Stephan Kämper" Date: 2002-01-02T20:45:56+09:00 Subject: [ruby-talk:30037] Re: string variable within a string Hi Paul, Paul Vallance wrote: > > Hi, if I do this > > @data2 = "/gettext(#{v},#{v1},0)\n" > puts @data2 > > ( ...where v is a fixnum = 720 > and v1 is a fixnum = 735...) > > I get the following.... > > "/gettext(720 > ,735 > , > > when I would like to get this > "/gettext(720,735,0) On my system (Win2K running the Win installer version 165-2 (from Dave & Andy)) I get what you (and I BTW) expect. > > the close curly brackets is being interpreted as a carriage return. > Is there another way to put the contents of a variable into a string > without using #{v} Sorry, I can't reproduce this. Stephan