Jan Theofel wrote:
Hello,

I have a shop system wirtten in Perl which I now must switch to mod_perl
bevor going live. The code is written with "use strict" and I think it
is in biggest parts a "good" source. ;-)

The question I have now is, that I have to switch the error handling.
Until now, I display an error message to the users web browser and then
die(). As I know, this is not a good idea unter mod_perl, especially
because I use references on lager data structures and some objects in my
code.

I searched the web for a documentation about that topic and found some
things wwhich are somehow confusing to me. Perhaps someone of you knows
a documentation which explains who to do this properly?
You can die() under mod_perl. See:
http://perl.apache.org/docs/1.0/guide/porting.html#die___and_mod_perl

Other relevant pages to read:
http://perl.apache.org/docs/1.0/guide/snippets.html#Redirecting_Errors_to_the_Client_Instead_of_error_log
http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Exception_Handling_for_mod_perl
http://perl.apache.org/docs/general/perl_reference/perl_reference.html#Customized___DIE___hanlder


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@;stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to