good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: Errors uncaught by CGI::Carpby Bod (Parson) |
on Oct 15, 2021 at 17:03 UTC ( [id://11137592]=note: print w/replies, xml ) | Need Help?? |
Are you sure the whole script isn't running? I came to the conclusion that the whole script isn't running because the logfile I am writing to with carpout has a few warnings written to it on a successful run but is blank on an error run. Surely the warnings would still be there on an error run if the script was actually running? I am also getting some strange behaviour that I suspect is due to the file output buffer.
During an error running of the script, the logfile gets created but nothing is written to it despite the print in the BEGIN block. During a successful execution, the timestamp in the BEGIN block gets written to the logfile after the warnings even through it shows an earlier timestamp. Thank you for your suggestions. They give me some things to try. I had run out of ideas! before trying it live on the server that has the problem They are one and the same server - just different domains in the same shared hosting. But yes, I will test it well first.
In Section
Seekers of Perl Wisdom
|
|