From: Tim Hunter Date: 2009-03-20T08:32:49+09:00 Subject: Re: String comparision help Live365 Live365 wrote: > Hi, > > I am new to ruby. I am trying to get input from the user and then trying > to compare that string to perform action depending on the comparision > result: > Here is the code > while command = STDIN.gets > command.chomp > print #{command} Forgot to add, if you use the p method to print the command instead of print, you would have seen the newline character. p is good for debugging. p command Notice that you don't have to use #{}, either. -- RMagick: http://rmagick.rubyforge.org/