MooseX::AutoImmute - Use Moose with make_immutable called for you.
Moose classes are littered with __PACKAGE__->meta->make_immutable(); at the end. This is much like all packages ending with a true value. true removes the boilerplate for packages, this removes the boilerplate for Moose.
package MyPackage; use strict; use warnings; use MooseX::AutoImmute; has ...; ...; #EOF # immutable autamatically!
package MyPackage; use strict; use warnings; # This will import Custom::Moose instead of Moose. use MooseX::AutoImmute qw/Custom::Moose/;
Chad Granum exodist7@gmail.com
Copyright (C) 2010 Chad Granum
MooseX-AutoImmute is free software; Standard perl licence.
MooseX-AutoImmute is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
To install MooseX::AutoImmute, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::AutoImmute
CPAN shell
perl -MCPAN -e shell install MooseX::AutoImmute
For more information on module installation, please visit the detailed CPAN module installation guide.