RECENT POSTS

P5-moosex-strictconstructor

May 26, 2018

Make your MooseX object constructors blow up on unknown attributes

Simply loading the MooseXStrictConstructor module makes your constructors “strict”. If your constructor is called with an attribute init argument that your class does not declare, then it calls “Carpconfess”. This is a great way to catch small typos.

WWW http//search.cpan.org/dist/MooseX-StrictConstructor/