Forum: Ruby I have a CGInquiry.

Posted by Al Baker (alcheddah)
on 2012-11-28 20:54
i'm using this example in BEGINNING RUBY of using a cgi code and got
this:

irb(main):002:0> #!/usr/bin/ruby
irb(main):003:0* require 'cgi'
=> true
irb(main):004:0> cgi = CGI.new
(offline mode: enter name=value pairs on standard input)

what am i supposed to do at this point. I can't proceed from here.
Posted by unknown (Guest)
on 2012-11-28 21:14
(Received via mailing list)
Am 28.11.2012 20:54, schrieb Al Baker:
> i'm using this example in BEGINNING RUBY of using a cgi code and got
> this:
>
> irb(main):002:0> #!/usr/bin/ruby
> irb(main):003:0* require 'cgi'
> => true
> irb(main):004:0> cgi = CGI.new
> (offline mode: enter name=value pairs on standard input)
>
> what am i supposed to do at this point. I can't proceed from here.

The exact same question has been answered just a couple of hours ago.

You can provide name-value pairs by entering things like `name=whatever'
and finish with CTRL-D. The provided parameters can then be used
in the script.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.