in reply to Not just a PH

Neat, but I got a wiered message with this running it from the command line (and am not sure of the message is part of the motif, or something funky.)

Msg read: "(offline mode: enter name=value pairs on standard input)"

I didn't need to type in any name=value pairs, just hit Ctrl-D and then the script would finish running, outputting as intended. Can anyone explain to me what that message was all about? Thanks.

The Autonomic Pilot

Replies are listed 'Best First'.
RE: RE: Not just a PH
by athomason (Curate) on May 30, 2000 at 02:45 UTC
    That's what CGI.pm does when the program is run from the command line. Typically it operates in a CGI environment (duh ;-), where it gets form input from the environment or STDIN. But when the script is run from the command line, it would be a pain to do the requisite formatting which your script would undo anyway, so CGI.pm puts up that prompt to allow you to put in form variable pairs directly, before the script runs. I just kind of assumed everybody had used CGI.pm before, whoops :-). Oh yeah, Ctrl-D inputs EOF on *nix systems; use Ctrl-Z for Windows.