in reply to use utf8 pragma with moo
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.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: use utf8 pragma with moo
by AlexP (Pilgrim) on Jan 15, 2022 at 08:46 UTC | |
by Corion (Patriarch) on Jan 15, 2022 at 08:50 UTC | |
by syphilis (Archbishop) on Jan 15, 2022 at 13:47 UTC | |
by Corion (Patriarch) on Jan 16, 2022 at 07:10 UTC | |
by syphilis (Archbishop) on Jan 16, 2022 at 09:35 UTC | |
by AlexP (Pilgrim) on Jan 15, 2022 at 08:58 UTC |