On 2014-07-04 11:53:59, ETHER wrote:
Show quoted text> In Moo and Moose we were debugging some interesting issues with global
> destruction via DESTROY subs, and we discovered that these errors were
> being swallowed completely on newer perls because Module::Runtime does
> not 'use warnings'.
>
> Please, please please add 'use strict; use warnings;' to
> Module::Runtime!
Ideally, I think, Module::Runtime should (for the duration of a load operation) adopt the warnings levels and categories of its caller. This will allow a module to do warnings::warnif($category, $message) and the caller of require_module(..) to selectively disable these warnings as needed. This is particularly important for the 'deprecated' category.
However, anything at all would be better than no warnings, because important failures in modules being loaded are being missed.