It was the "use CGI::Carp qw(fatalsToBrowser);".  Took it out and now all is
well. And eval block will work for my purposes - mostly trapping my own sql
generation errors.  I read up on $SIG{__DIE__} in the "Guide".  It may
become useful for me in the future.

Thanks for the quick info.

Chuck


-----Original Message-----
From: Eric L. Brine <[EMAIL PROTECTED]>
To: Chuck Goehring <[EMAIL PROTECTED]>
Cc: mod perl list <[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, September 08, 2000 9:58 PM
Subject: Re: Eval block error trapping bug????


>> Under mod_perl, the die() within the eval block causes the
>> program to really die.
>
>Does your program (maybe CGI.pm or something used by CGI.pm?) set
>$SIG{'DIE'}? IIRC, $SIG{'DIE'} has precedence over eval{}, something
>many consider to be a bug.
>
>If so, I'd try:
>  eval {
>    local $SIG{'DIE'}; # undefine $SIG{'DIE'} in this block
>    ...normal code...
>  };
>  if ($@) { ...normal code... }
>
>ELB

Reply via email to