The attraction of Test::Fatal in Perl
2 min readApr 6, 2021
In February I wrote an article surveying exception handling in Perl, recommending that developers use Test::Exception to make sure their code behaves as expected. A commenter on Reddit suggested I check out Test::Fatal as an alternative. What advantages does it hold over Test::Exception?
- It only exports one function compared to Test::Exception’s four:
exception
, which you can…