From: ts Date: 2002-01-02T20:33:59+09:00 Subject: [ruby-talk:30035] Re: string variable within a string >>>>> "P" == Paul Vallance writes: P> the close curly brackets is being interpreted as a carriage return. P> Is there another way to put the contents of a variable into a string P> without using #{v} No, not really. The variable `v' and `v1' was probably read with #gets and this mean that it exist a \n at the end pigeon% ruby -e 'v = gets; puts v.inspect; print "#{v}"' 12 "12\n" 12 pigeon% You must use #chomp pigeon% ruby -e 'v = gets; v.chomp!; puts v.inspect; print "#{v}"' 12 "12" 12pigeon% Guy Decoux