InfiniteSilence has asked for the wisdom of the Perl Monks concerning the following question:

Version 2.56 on Win32 automatically opens an 'offline mode' where you can put your parameter values on the command line (for testing purposes). Version 2.74 doesn't do this. It simply runs the code. There are a bunch of variables to configure CGI differently, but the documentation is sparse. Anybody know how to turn offline mode back on?

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re: CGI version 2.74 missing offline mode
by davorg (Chancellor) on Apr 12, 2001 at 20:37 UTC
Re: CGI version 2.74 missing offline mode
by Asim (Hermit) on Apr 12, 2001 at 20:42 UTC

    According to my CGI.pm docs for 2.74, it still does this. From the section labeled "DEBUGGING":

    If you are running the script from the command line or in the perl debugger, you can pass the script a list of keywords or parameter=value pairs on the command line or from standard input (you don't have to worry about tricking your script into reading from environment variables). You can pass keywords like this: your_script.pl keyword1 keyword2 keyword3 or this: your_script.pl keyword1+keyword2+keyword3

    Questions, if I may:
    1) To you have the -no_debug option on in your use statement?
    2) What is different between the OSes/Perl versions you run 2.56 and 2.74 on?

    Check out that section I mention above in CGI's documentation, and make sure you're using a command structure that isn't getting hosed by Win32's shell.

    ----Asim, known to some as Woodrow.