Subject: | eval require checks fail when DIE signal is set |
The eval perldoc mentions the following:
Show quoted text
> Using the eval{} form as an exception trap in libraries does have some
issues. Due to the current arguably broken state of __DIE__ hooks, you
may wish not to trigger any __DIE__ hooks that user code may have
installed. You can use the local $SIG{__DIE__} construct for this
purpose, as this example shows:
Show quoted text>
> eval { local $SIG{'__DIE__'}; $answer = $a / $b; };
We've just run into this problem where we didn't have IO::Socket::INET6
installed and the program still died.