CGI.pm not interactive at command line

Discussion in 'Perl Misc' started by Peter_W_Levine@uhc.com, Dec 21, 2005.

  1. Guest

    Hi,

    I'm attempting to test a cgi script using CGI.pm (perl v5.8.7 on
    Windows 2000). However, the script does not go into interactive mode &
    ask me for parameters as I exprected when I execute it on the command
    line but simply runs the script.

    My script begins:

    my @params = param();
    if(! @params)
    {
    display_form();
    }
    else
    {
    }

    How should I begin a script to get CGI.pm to work interactively?


    Pete
    , Dec 21, 2005
    #1
    1. Advertising

  2. "" <> wrote in
    news::

    > I'm attempting to test a cgi script using CGI.pm (perl v5.8.7 on
    > Windows 2000). However, the script does not go into interactive mode &
    > ask me for parameters as I exprected when I execute it on the command
    > line but simply runs the script.
    >
    > My script begins:
    >
    > my @params = param();
    > if(! @params)
    > {
    > display_form();
    > }
    > else
    > {
    > }
    >
    > How should I begin a script to get CGI.pm to work interactively?


    http://search.cpan.org/~lds/CGI.pm-3.15/CGI.pm#DEBUGGING

    Sinan

    --
    A. Sinan Unur <>
    (reverse each component and remove .invalid for email address)

    comp.lang.perl.misc guidelines on the WWW:
    http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
    A. Sinan Unur, Dec 21, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles Fox
    Replies:
    3
    Views:
    1,709
    Charles Fox
    Apr 15, 2005
  2. Nicolas Fleury

    Reset Interactive Command Line

    Nicolas Fleury, Oct 6, 2003, in forum: Python
    Replies:
    3
    Views:
    528
    Dennis Lee Bieber
    Oct 8, 2003
  3. planetthoughtful

    Creating interactive command-line Python app?

    planetthoughtful, Dec 21, 2005, in forum: Python
    Replies:
    6
    Views:
    442
    Tim Chase
    Jan 3, 2013
  4. epsilon
    Replies:
    4
    Views:
    300
    Gabriel Genellina
    Aug 22, 2007
  5. Replies:
    4
    Views:
    155
    brian d foy
    Dec 22, 2005
Loading...

Share This Page