MouseX::Types::Common::Numeric - A set of commonly-used numeric type constraints
use MouseX::Types::Common::Numeric qw/PositiveInt/; has count => (is => 'rw', isa => PositiveInt); ... #this will fail $object->count(-33);
A set of commonly-used numeric type constraints that do not ship with Mouse by default.
PositiveNum
PositiveInt
NegativeNum
Int
SingleDigit
MouseX::Types::Common::String
Please see:: MouseX::Types::Common
To install MouseX::Types::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MouseX::Types::Common
CPAN shell
perl -MCPAN -e shell install MouseX::Types::Common
For more information on module installation, please visit the detailed CPAN module installation guide.