[thelist] Re: CGI Help

Means, Eric D eric.d.means at boeing.com
Mon Jun 17 18:28:00 CDT 2002


>  -----Original Message-----
> From: 	Kevin B. O'Brien [mailto:ahuka at ahuka.com]
> Sent:	Monday, June 17, 2002 5:24 PM
> To:	thelist at lists.evolt.org
> Subject:	Re: [thelist] Re: CGI Help
>
> At 09:31 AM 6/17/2002 -0400, Benjamin said something remarkably like (but
> somehow subtly different from):
> >Always helpful to "use CGI::Carp 'fatalsToBrowser';" (minus the double
> >quotes).
> >
> I'm afraid I don't understand this comment. Can you elaborate?

Add the line

use CGI::Carp 'fatalsToBrowser'

to the top (though *after* the #!/usr/bin/perl line) of Perl CGI scripts.
This will catch any errors and display them in friendly fashion to the
browser instead of just spitting out a generic "500 Server Error" message.



More information about the thelist mailing list