From: ts Date: 2002-05-09T23:00:21+09:00 Subject: Re: gets and eof? >>>>> "k" == kwatch writes: k> break if $stdin.eof? k> line = $stdin.gets [...] k> line = $stdin.gets k> break if $stdin.eof? [...] k> It's mystery... ruby use an active model (is EOF waiting at the stream) rather than a passive model (is EOF has already met the stream) Guy Decoux