Re: Error reporting in CGI
- From: "daniel kaplan" <nospam@xxxxxxxxxx>
- Date: Fri, 20 May 2005 10:05:43 -0400
"Sherm Pendley" <spamtrap@xxxxxxxxxxx> wrote in message
news:bIGdnXry0bVezRDfRVn-3A@xxxxxxxxxxxxxxx
> In a nutshell, add this to the top of your script:
>
> use CGI::Carp qw(fatalsToBrowser);
Thanks Sherm, I have that in all my scripts, thinking that was the ticket.
But since it didn't do it upon furhter reading I realized it works with "the
standard warn(), die (), croak(), confess() and carp() calls will
automagically be replaced with functions that write out nicely time-stamped
messages to the HTTP server error log."
Actually now that I think about it, not declaring $x before using it woudl
be a compile time error (with my minimal knowledge of Perl) and am asking
this in the wrong newsgroup?
.
- References:
- Error reporting in CGI
- From: daniel kaplan
- Re: Error reporting in CGI
- From: Sherm Pendley
- Error reporting in CGI
- Prev by Date: Locale::Maketext::Lexicon - Problems with import
- Next by Date: Spread***::WriteExcel format width
- Previous by thread: Re: Error reporting in CGI
- Next by thread: Locale::Maketext::Lexicon - Problems with import
- Index(es):