
MooseX::Types::Common::Numeric - Commonly used numeric types

use MooseX::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 Moose by default.


Please see:: MooseX::Types::Common