Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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:

https://perl.apache.org/docs/2.0/user/porting/compat.html

"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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2020-09-28 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (143 votes). Check out past polls.

    Notices?