藤 吾郎

NAME

MouseX::Types::Common::Numeric - A set of commonly-used numeric type constraints

SYNOPSIS

    use MouseX::Types::Common::Numeric qw/PositiveInt/;
    has count => (is => 'rw', isa => PositiveInt);

    ...
    #this will fail
    $object->count(-33);

DESCRIPTION

A set of commonly-used numeric type constraints that do not ship with Mouse by default.

  • PositiveNum

  • PositiveInt

  • NegativeNum

  • Int

  • SingleDigit

SEE ALSO

AUTHORS

Please see:: MouseX::Types::Common