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


MooseX-Types-Common documentation  | view source Contained in the MooseX-Types-Common distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

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

DESCRIPTION

Top

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

* PositiveNum
* PositiveInt
* NegativeNum
* Int
* SingleDigit

SEE ALSO

Top

* MooseX::Types::Common::String

AUTHORS

Top

Please see:: MooseX::Types::Common


MooseX-Types-Common documentation  | view source Contained in the MooseX-Types-Common distribution.