1 Jul 2007 06:12
Re: 200 Response on die
Christian Hoermann <0oo0oo0.c <at> gmail.com>
2007-07-01 04:12:06 GMT
2007-07-01 04:12:06 GMT
Hello Clint, > Yes, it is intended behaviour. thank you for clarifying this. > What I do is keep all of my content in a single variable, and once > pretty much everything that could die has finished, I > $r->print($content) as the last action by my handler. > All the previous code is wrapped in an eval, so I can catch any die's > and send a custom error page instead of $content. That sounds like a really good way to do it; I was thinking of doing it like that too. Combining this with a good exception handling module will allow for some helpful and more specific error pages. > Also, have a read of these docs: > http://perl.apache.org/docs/2.0/user/coding/coding.html#Integration_with_Apache_Issues Thanks for the link, I've had a read of it and most of the other documentation on the site. It's good that there's quite a bit of detailed documentation for mod_perl. Best Regards, Christian
I don't even like the language much, but I'm sure that's a personal thing.
It looks then like I have two options:
1. abandon mod-perl and just use cgi.
2. move the project to a server over which I have full control.
(1) rather defeats the object of using PERL, and I am loth to acknowledge
defeat; (2) adds significant expense, and extra effort, to the project. Bah
- what a mess!
Thanks again, Tony
RSS Feed