in reply to Re: How to conditionally use CGI::Carp?
in thread How to conditionally use CGI::Carp?
well, actually, no... at least, not for me. I assumed this as well, but lots of experimentation has shown otherwise. For example, in February, I posted Inconsistent results from CGI::Carp handler, to which no one at all has replied. In my own research (which I haven't yet completed, but am getting close), I find that some/many perl errors inside MODULES are not caught by the CGI::Carp handler when the "use" statement is in the main (non-module) perl code (even within BEGIN blocks). However, if I duplicate the code within the modules, then the perl errors are caught and sent to the browser as expected (or to wherever you redirect).
This is the reason for this current thread. If I didn't have to put the "use carp" stuff in the modules, none of this would be of concern.
...and the problems/confusions just seem to be adding up. For example, where are my $ENV environment variables?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to conditionally use CGI::Carp?
by perrin (Chancellor) on May 06, 2005 at 20:47 UTC |