Mo::required - Adds the required feature to Mo's has
use Mo qw'required'; has name => ( required => 1 );
Adds the required parameter to has. When required is set to a positive value, the constructor will die if the attribute is not set.
To install Mo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mo
CPAN shell
perl -MCPAN -e shell install Mo
For more information on module installation, please visit the detailed CPAN module installation guide.