Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Generating more readable errors with mod_perl

by ww (Archbishop)
on Nov 25, 2017 at 13:45 UTC ( #1204239=note: print w/replies, xml ) Need Help??

in reply to Generating more readable errors with mod_perl

I don't use mod_perl (and don't know much about it, but which one are you using?) but suspect you can trap the errors using eval; that's a supposition supported by this:

"In mod_perl 2.0, <Perl> sections errors are now always fatal. Any error in them will cause an immediate server startup abort, dumping the error to STDERR. To avoid this, eval {} can be used to trap errors and ignore them. In mod_perl 1.0, strict was somewhat of a misnomer." (direct from big-G)

FWIW, trapping with an eval does NOT appear to be exclusively mod_perl 2; SO has this; unsurprisingly, so does PM.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1204239]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-10-25 10:34 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (89 votes). Check out past polls.