in reply to CGI Errors in HTML

Use CGI::Carp. Fatal errors (die) will then be sent to your browser:
use CGI::Carp qw(fatalsToBrowser); die "Fatal error messages are now sent to browser";
Also, make sure that you print out the correct HTTP headers.

Replies are listed 'Best First'.
RE: Re: CGI Errors in HTML
by merlyn (Sage) on Jun 17, 2000 at 02:16 UTC
    Don't do this on a production site, though. It reveals too much in the case of errors. My current Linux Magazine column shows how to send email on errors, instead of to the browser.

    -- Randal L. Schwartz, Perl hacker