From: Tamas Szabo Date: 2009-12-09T17:06:15+09:00 Subject: Re: a gets problem --00504502e13b90ca59047a47293f Content-Type: text/plain; charset=ISO-8859-1 On Wed, Dec 9, 2009 at 3:41 PM, Ruby Newbee wrote: > On Wed, Dec 9, 2009 at 3:35 PM, Seebs wrote: > > On 2009-12-09, Ruby Newbee wrote: > >> But when I re-executed x = gets it always got a nil. > >> Why this happens? Thank you. > > > > Because you convinced it that it had reached the end of file, and gets > > returns a nil after you've reached end of file. > > > > How to re-gets it then? > Thanks. > > Why don't you just use ENTER instead of 2 CTRL-D-s when you are entering the line? Tamas --00504502e13b90ca59047a47293f--