like( $@, qr/Unknown encoding format 'Test'/,
Yes, despite some long-standing issues with $@, since this code is explicitly checking for a specific value, that should work ok too, without any extra modules. Test::Fatal uses Try::Tiny internally, which works around some of the issues with $@. Three of my four CPAN modules use Test::Fatal extensively for testing with no problems across all of CPAN Testers.
In reply to Re^3: Error: Can't locate Test/Exception.pm in @INC ...
by haukex
in thread Error: Can't locate Test/Exception.pm in @INC (you may need to install the Test::Exception module) on CPANPLUS
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |