argv has asked for the wisdom of the Perl Monks concerning the following question:
I use CGI::Carp in my perl scripts, and if there's an error in the main calling script, output is redirected to a file (and the browser, when debugging) exactly as documented.
However, if there's an error in one of the modules that is imported (via "use"), then the carp interface doesn't seem to work. I can copy the same carp code from the main perl script to the top of each module, and THAT seems to work. But shouldn't that not be necessary? Shouldn't its inclusion at the top of the initially-called script be sufficient?
The doc seems to be silent on this matter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Carp --where does it go? (bug)
by tye (Sage) on Jan 09, 2005 at 09:30 UTC | |
by argv (Pilgrim) on Jan 09, 2005 at 18:37 UTC |