Subject: | Code from Type::Utils synopsis doesn't work |
Hello,
the coersion as given in the Type::Utils synopsis doesn't work.
Even when I copy the code verbatim and then use it like given below, it won't work.:
package Test;
use Moo;
use MT qw/AllCaps/;
has 'attr' => (
is => 'rw',
isa => AllCaps
);
package main;
use Modern::Perl '2017';
my $t = Test->new(attr => 'aa');
the coersion as given in the Type::Utils synopsis doesn't work.
Even when I copy the code verbatim and then use it like given below, it won't work.:
package Test;
use Moo;
use MT qw/AllCaps/;
has 'attr' => (
is => 'rw',
isa => AllCaps
);
package main;
use Modern::Perl '2017';
my $t = Test->new(attr => 'aa');