in reply to Trap errors in entire module...
as the first statement in your file, and they will go to the browser.BEGIN {use CGI::Carp qw(fatalsToBrowser);}
I just tested putting this begin statement after the use call for the module with an error in it, and you only get erros in browser if the BEGIN is before the use.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Trap errors in entire module...
by kiat (Vicar) on Mar 28, 2004 at 09:42 UTC | |
by matija (Priest) on Mar 28, 2004 at 09:45 UTC | |
by kiat (Vicar) on Mar 28, 2004 at 10:16 UTC |