in reply to Catching CGI Errors

What's wrong with using fatalsToBrowser?

Put this line at the beginning of your code, et voila!

use CGI::Carp qw(fatalsToBrowser);

Replies are listed 'Best First'.
Re: Re: Catching CGI Errors
by nashdj (Friar) on Apr 26, 2001 at 13:38 UTC
    Do I feel stupid now. But hey I did throw in the 'no doubt its been done before' to cover myself :)

    I can't believe I have never seen this before, what an incrediably usefull function.

    That said, fatalsToBrowser wont pick up the warnings :)