On Sun Nov 24 19:55:21 2013, ZDM wrote:
Show quoted text> Please, add some package variable to Moose or Moose::Exporter
> namespaces, which can be used to turn off warnings export.
I doubt we will add a package variable to do this.
I think you could work around this by making your own core package for Moose, like P::Moose. We've done this for Moose, Moose::Role, MX::Role::Parameterized, and Test::Class::Moose at my work place, and it gives us full control over when Moose is exported, as well as warnings, strict, autodie, etc. You can also include various MX modules by default, like MooseX::StrictConstructor.
Also, BTW, you can use Import::Into to export autodie rather than the goto hack. Just make sure that you pass a numeric caller level to autodie->import::into.