On Mon, 08 Jun 2009 14:59:31 +0900, 7stud -- wrote:

> 7stud -- wrote:
>>
>> print "Enter: "
>> input = gets
>> p input
>> 
>> --output:--
>> Enter:
>> "\n"
> 
> 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.



-- 
Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/