perl - Catching errors with both mod_cgi & mod_perl -


Thanks in advance for everyone.

I am doing some research on error handling and I think I am getting a solid understanding of what I should do.

Courses: My code is staying in Apache and implemented in the browser, my goal does not include command line execution.

I have the ability to capture the behavior of CGI :: Carp (Motal Tubrozer) and throw it on my own template page, email it etc. etc. I want to notice Does anyone know what does the FatalsToBrowser do not work with mod_perl? How is Apache / mod_perl getting?


The first goal: If I am executing the code with mod_perl or mod_cgi, then I would like to add something together.

The second goal: I have a high-level method (s) that captures all the errors similar to the .NET application_Error (global.asax) and PHP's set_exception_handler () and set_error_handler () methods.


I have read / reviewed:

/ P>

1.), but that was not I was looking. The item that I want to hold is dead () ing The next link also says that this article is outdated and excluded.

2.), but I did not find a lot about my goals. Practical Mode Pearl (O Reilly), Chapter 21 "Error handling and debugging" Thankfully all my perl code uses strict and warnings are enabled, and the most important described in chapter 6 Things are "coding with mod_perl in mind" beforehand.

4.) I have dug through the table of contents "Pearl Learning", "Pearl Cookbook", "Programming Pearl" and "Upper Order Pearl" and I did not see anything that stuck on me If you think that I remember something, please tell me :)


I do not remember (perhaps in "practical mod_perl"), but I have read that you get $ SIG {__ DIE __}.

Did you mod_perl Read the bits on the website? It discusses how you can get an exception exception even though you use $ SIG {__ DIE __} instead of global die Override the function. A very clean method but not correct.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -