From: beny 18241 Date: 2009-09-15T19:33:30+09:00 Subject: Re: ruby-oci8 question Patrick Okui wrote: > On Sep 15, 2009, at 1:16 PM, beny 18241 wrote: > >> Hi, >> >> >> I have some problem, i want to make select query with $name variable >> but >> i cant, this is my code please help what is wrong >> >> >> print "Enter name :" >> $name = STDIN.gets > > this $name has a '\n' in it, try STDIN.gets.chomp thanks works -- Posted via http://www.ruby-forum.com/.