Another warning module is Test :: NoWarnings . This checks that your code does not raise any warnings, and if the test fails, you cannot run the test. You can ignore known warnings, such as OP, assuming that this is the desired behavior (when working with $, we ignore warnings from several noisy CPAN modules, such as PDF :: API2). He can
In general, I would agree with Schwern, although I will try to fix the warnings, not the cover of $SIG{__WARN__} . One of the main advantages of tests is to detect errors that occur when changing another code - your test file does not just check that the code you just wrote is ok, but that the code you wrote will still be ok in the future when the CPAN modules and the rest of your application are updated.
source share