> 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