From: "Carlo E. Prelz" Date: 2012-11-28T20:28:16+09:00 Subject: Re: CGI question Subject: CGI question Date: Wed 28 Nov 12 07:58:17PM +0900 Quoting Assaf Shomer (lists@ruby-forum.com): > When i run this program i get nothing on the console output, and when i > tried to run it in irb, it got stuck on the cgi = CGI.new("html3") line > (by stuck I mean further ENTERs don't give me the standard > irb(main):007:0> ) and gave the following message: > ============== > (offline mode: enter name=value pairs on standard input) > ============== > can anyone explain to me what's going on? I have no experience with the cgi package at all, but the message is clear: IRB is waiting for something on its standard input, waiting for name=value pairs. If you want to find out exactly what these name=value pairs are, I suggest you study the cgi package more. But I can tell you that (at least in Linux) you tell the shell (and IRB) that you are done with providing data from the standard input with Ctrl-D. Indeed, if you press Ctrl-D at the above prompt, the object creation call returns successfully. Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)