Re: Error reporting in CGI



"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?


.