Within your Moo based module, try this:
package Foo;
use Moo;
use Data::Dumper;
warn Dumper [sort keys %INC];
1;
On my system with Perl 5.32 I get the following output:
$VAR1 = [
'Carp.pm',
'Config.pm',
'Data/Dumper.pm',
'Exporter.pm',
'Foo.pm',
'List/Util.pm',
'Moo.pm',
'Moo/Object.pm',
'Moo/_Utils.pm',
'Moo/sification.pm',
'Scalar/Util.pm',
'Sub/Util.pm',
'XSLoader.pm',
'bytes.pm',
'constant.pm',
'mro.pm',
'overloading.pm',
'strict.pm',
'warnings.pm',
'warnings/register.pm'
];
So you can see that the utf8 pragma isn't enabled by default by Moo.
Can you provide a self-contained code snippet that demonstrates the namespace::clean issue? Also within the namespace::clean documentation, it does mention that you can pass an -except => [qw(foo bar)]; list of subs not to clean. Doing so may improve your experience.
|