YATT::Lite sets $SIG{__DIE__} and $SIG{__WARN__} during call of YATT::Lite::WebMVC0::DirApp->handle() to provide better error diagnoses for template programmers. Unfortunately, this feature can interfere badly with other CPAN modules when they have codes like eval {require MaybeMissingModule}. So, let's add a better wrapper for require() to load CPAN modules without worrying about their use of eval {...}.
YATT::Lite sets
$SIG{__DIE__}
and$SIG{__WARN__}
during call ofYATT::Lite::WebMVC0::DirApp->handle()
to provide better error diagnoses for template programmers. Unfortunately, this feature can interfere badly with other CPAN modules when they have codes likeeval {require MaybeMissingModule}
. So, let's add a better wrapper forrequire()
to load CPAN modules without worrying about their use ofeval {...}
.