in reply to Re^2: Disappearing fatal errors and die() with mod_perl2
in thread Disappearing fatal errors and die() with mod_perl2
#! /usr/bin/env perl use warnings; use strict; use Foo; die "Died here";
When run, tst.pl producespackage Foo; local $SIG{__DIE__} = sub { print "Caught in " . __PACKAGE }; sub _die { die }; 1;
As expected ... by me anyway, since the handler has only been locally re-defined at the lower-level i.e. in the scope of Foo, leaving the handler unchanged at the upper/calling level.$> perl tst.pl Died here at tst.pl line 7.
As to your latter question, sadly, I have no experience with mod_perl, so I'm afraid, have nothing to contribute :-((
|
|---|