[thelist] CGI/Perl debugging resource

Jeremy Ashcraft ashcraft at 13monkeys.com
Thu Nov 30 08:39:40 CST 2000


<tip type="perl debugging">
One thing I always do when debugging perl is to add this line at the top of the
script:

use CGI::Carp qw(fatalsToBrowser);

This will output all error messages to the browser, so you can see what exactly
went wrong instead of just getting the 500 Internal Server Error.  The Carp
module comes standard, so no installation is required.
</tip>

HTH, to whoever asked it

jeremy

martin.p.burns at uk.pwcglobal.com wrote:

> Memo from Martin P Burns of PricewaterhouseCoopers
>
> -------------------- Start of message text --------------------
>
> Someone was asking about help debugging Formmail
> the other day (sorry, deleted the mail).
>
> This might be of help:
> http://www.perl.com/CPAN-local/doc/FAQs/cgi/idiots-guide.html
>
> Cheers
> Martin
>





More information about the thelist mailing list