MooseX::Types::Common::Numeric.3pm

Langue: en

Autres versions - même langue

Version: 2010-01-05 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

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.
*
PositiveNum
*
PositiveInt
*
NegativeNum
*
Int
*
SingleDigit

SEE ALSO

*
MooseX::Types::Common::String

AUTHORS

Please see:: MooseX::Types::Common