Moos::Role - Simple roles for Moos.
package Milkable; use Moos-Role; # note not "Moos::Role" has 'udders'; sub milk { ... } package Cow; use Moos; with 'Milkable';
Moos-Role is a small wrapper around Role::Tiny providing a few additional Moos features.
Moos-Role
Turns on strict and warnings for you.
strict
warnings
The ever useful blessed (from Scalar::Util) and confess (from Carp) are exported to your namespace.
blessed
confess
has
Accessor generator. See Moos.
By setting the environment variable, Moos will export the XXX debugging keywords.
Moos
Role::Tiny
Ingy döt Net <ingy@cpan.org>
Toby Inkster <tobyink@cpan.org>
Copyright 2012-2014. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Moos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moos
CPAN shell
perl -MCPAN -e shell install Moos
For more information on module installation, please visit the detailed CPAN module installation guide.