john.goor has asked for the wisdom of the Perl Monks concerning the following question:
The script, however, is used to be called from a cgi. When running the cgi (from the browser) I get "Can't call method "Close" on an undefined value at F:\Apps\Admin\scripts\post_submit.pl line 124."
What makes the script/database connection not to work when called from this cgi?
Note:
The cgi is a cgi that kicks-off the post_submit.pl script using Win32::Process in a separate shell, and immediately redirecting to a logmonitor.cgi, which tails the output of the post_submit.pl script and sends the tail output to the browser.
The result is a non-cgi script that is started and not attached to the browser-session.
Oddly enough I have *cgi* scripts using the same database-techniques without a problem.
Need more info? I'd be happy to provide. :-)) Please help, since I'm in deeep trouble if I cannot solve this one..
edit (broquaint): dropped <code> tags and added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Puzzled by web
by dave_the_m (Monsignor) on May 24, 2004 at 11:02 UTC | |
by john.goor (Acolyte) on May 24, 2004 at 11:20 UTC | |
|
Re: Puzzled by web
by EdwardG (Vicar) on May 24, 2004 at 10:56 UTC | |
|
Re: Puzzled by web
by jepri (Parson) on May 24, 2004 at 11:02 UTC |