in reply to Best practices for handling exceptions in die/eval style
In regard to warnings, they should be corrected. If a CPAN module produces a warning and it is a result of giving it duff parameters, I'd be inclined to force it to die and fix the root cause in my code. 'use strictures 2;' is a shorthand for the following:-
which is not necessarily the best match for either your code or a given CPAN module. So it is worth maintaining a site policy on these settings.use strict; use warnings FATAL => 'all'; use warnings NONFATAL => qw( exec recursion internal malloc newline experimental deprecated portable );
Finally, if you are convinced a warning is wrong, best post it here for discussion.
|
|---|