The C++ thread indicates one should check for EOF, since there's no obvious end to the input.I don't know how to do that in Ruby - could someone give me a hand?
Did you try google? I can't access lmgtfy on my blackberry or else you'd get lucky.