From: Logan Capaldo Date: 2006-04-14T00:59:08+09:00 Subject: Re: IO stream help --Apple-Mail-11--866980498 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Apr 13, 2006, at 11:46 AM, Lon Baker wrote: > Farrel Lifson wrote: >> Something like this? >> >> irb(main):007:0> while (!(input=$stdin.readline.chomp).length.zero?) >> irb(main):008:1> puts input >> irb(main):009:1> end >> Hello >> Hello >> World >> World >> >> => nil > > Thank. But no luck. > > It seems to hang waiting for input. > And you don't want it to block for input? Are you trying to use asynchronous IO or something? --Apple-Mail-11--866980498--