MooseX::Types::Common:UsereContributed Perl MooseX::Types::Common::Numeric(3p)



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

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

       o   PositiveNum

       o   PositiveInt

       o   NegativeNum

       o   Int

       o   SingleDigit

SEE ALSO
       o   MooseX::Types::Common::String

AUTHORS
       Please see:: MooseX::Types::Common



perl v5.12.2                      2010-01-04MooseX::Types::Common::Numeric(3p)
