dagolden / Path-Tiny

File path utility
41 stars 59 forks source link

prevent outer $SIG{__DIE__} handler from being called when probing for the existance of optional modules #214

Closed fany closed 6 years ago

fany commented 6 years ago

Using ->slurp_utf8() aborted the execution of my script via its $SIG{__DIE__} handler, which was called by the eval in _check_UU(), because I do not have Unicode::UTF8 installed.

This patch prevents outer $SIG{__DIE__} handlers from being called using the workaround described in the documentation to eval.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.3%) to 93.073% when pulling 078c1920f91b7d7e1d3e3f8130616b244eaddf9a on fany:SIGDIE into b58e92f90cc370f9bd0b721b9ee00c4c8b9c6f85 on dagolden:master.