Perl Moose attribute not force type checking [closed]
The problem is the new defined at line 64 of Cat.pm. Moose provides a new method, so you don’t need to write your own. Remove that new method, and it works fine. The other bit that should have triggered a “aha!” is the use 5.006; use strict; use warnings; which is present halfway down your … Read more