in reply to Perl infinite loops!
The best solution is to test all CGI beforehand with interactive mode or the debugger ("or" is not a mutually exclusive term- that's "xor" which i would have written if I had meant that). Interactive mode is enabled when you run your CGI script from the command line. This also allows you to easily pass batch CGI params by storing them in a file instead of typing and retyping them in a browser.use CGI; use CGI::Carp qw/fatalsToBrowser set_message/; #read more about these +in the docs link above alarm($x); #if you wish, though I consider this a quick hack since a h +eavy server load may actually force your users to wait this long even + though there is no infinite loop and still get the info they wanted +cut off
(Oh geesh! I wrote coed instead of code before- I wonder what I was thinking about....)perl cgi.cgi<batch\ file\ with\ \\n\ delimited\ CGI\ params.file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl infinite loops!
by marius (Hermit) on Dec 06, 2000 at 21:57 UTC | |
by AgentM (Curate) on Dec 06, 2000 at 22:14 UTC | |
by marius (Hermit) on Dec 06, 2000 at 22:55 UTC | |
by Anonymous Monk on Dec 07, 2000 at 00:55 UTC |