Spidy has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a script that uses a module dedicated to outputting unique error pages. The script has the line:
use CGI::Carp(fatalsToBrowser);
at the top of it, so that I can quickly debug problems. However, this means that when my module calls die() inside its error outputting routine, I get "at line 46 of moduleName.pm..." at the bottom of my error page. I need a way to make it so that fatalsToBrowser does not apply to the module, but does apply to the script. Does anyone know how I could do this?
Please note, I have tried using
within my module. Thanks,no CGI::Carp(fatalsToBrowser);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Disabling CGI::Carp(fatalsToBrowser)
by tilly (Archbishop) on Sep 14, 2006 at 18:14 UTC | |
Re: Disabling CGI::Carp(fatalsToBrowser)
by sgifford (Prior) on Sep 14, 2006 at 17:37 UTC | |
Re: Disabling CGI::Carp(fatalsToBrowser) (upgrade)
by tye (Sage) on Sep 14, 2006 at 17:31 UTC | |
Re: Disabling CGI::Carp(fatalsToBrowser)
by robartes (Priest) on Sep 14, 2006 at 16:37 UTC |