From: 7stud -- Date: 2009-06-09T01:14:46+09:00 Subject: Re: New to Programming: Value of gets for just "Enter" Ken Bloom wrote: > On Mon, 08 Jun 2009 14:59:31 +0900, 7stud -- wrote: > >> Whenever you hit Enter/Return on your keyboard, you are adding a >> "newline" to the input. A newline is signified by the string "\n". > > And then the chomp function which he calls on the string removes the \n > from the end, making it an empty string. Really? -- Posted via http://www.ruby-forum.com/.