From: 7stud -- Date: 2009-06-08T14:47:29+09:00 Subject: Re: New to Programming: Value of gets for just "Enter" Matt Garriott wrote: > Hello, > I am new to programming in general, and I was having a difficult time > figuring out the solution to this problem as well as thinking of good > key words that would help me find the solution online. > > My problem is simply that I do not know what the value of a 'gets' that > doesn't contain anything is. I want this program to end if someone just > hits enter for the gets response, and I don't know how to represent that > in the program itself. print "Enter: " input = gets p input --output:-- Enter: "\n" -- Posted via http://www.ruby-forum.com/.