in reply to Re^2: YAML, $SIG{__DIE__}, Log4perl, $^S, and eval{}
in thread [SOLVED] YAML, $SIG{__DIE__}, Log4perl, $^S, and eval{}

Is it possible to inline MyModuleWhichExports_die in the main program and have it "export" the custom die() function?

Sure, why not , as long as its loaded before all the other things that load it ... go fish :)

Import::Into, ex::override ,Override the open builtin globally.. redux, Re: Selectively importing warnings (works), Re: how to make lexical pragma global, hints ( pl_hints $^H %^H ), taint::all (package taintall)

and some of these

perl5, perl5::ingy
ToolSet
Syntax::Collector
Toolkit
rig
see perlrun#PERL5OPT , PERLLIB, PERL5LIB
sitecustomize under perlrun#* f*
how to make lexical pragma global, hints ( pl_hints $^H %^H ), taint::all, Re: batch 'use' possible? (perl5.pm Toolset.pm, Syntax::Collector , Toolkit.pm, rig.pm, sitecustomize.pl, PERL5OPT )( load multiple commonly-used favorite modules in a single import expression )

export into / Import::Into

 

:D

Maybe like

sub CGI::die { log... CORE::die() } sub pachage::package::die { log... CORE::die() } sub shamalama::lamma::die { log... CORE::die() } use CGI; use pachage; use shamalama::lamma;