# httpd.conf # # Amongst other things that would normally be in the # configuration # Using PerlModule directive would work fine, # commented here to try and be a bit more clear # PerlModule Some::Module # The module will die in compilation, but mod_perl # doesn't seem to care at all ChildInitHandler Some::Module # lib/Some/Module.pm package Some::Module; use strict; use warnings; # Follow this chain here, the problem isn't # truly within the handler, just when a module # is bound to an event handler use Another::Module::Bar; sub handler { 1; } 1; # lib/Another/Module.pm package Another::Module; use strict; use warnings; sub new { bless {}, shift } sub override_me { print q/Not overridden/; } # lib/Another/Module/Bar.pm package Another::Module::Bar; use strict; use warnings; # The usage of the base module works fine # where the 'Another::Module' module's # method stash has successfully been attached # to this module use base qw( Another::Module ); die( q/This is an example of death from Perl/ ); sub override_me { print q/Now it has been overridden/; } 1;