1MooseX::Types::Common::UNsuemrerCiocn(t3r)ibuted Perl DoMcouomseenXt:a:tTiyopnes::Common::Numeric(3)
2
3
4

NAME

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

VERSION

9       version 0.001014
10

SYNOPSIS

12           use MooseX::Types::Common::Numeric qw/PositiveInt/;
13           has count => (is => 'rw', isa => PositiveInt);
14
15           ...
16           #this will fail
17           $object->count(-33);
18

DESCRIPTION

20       A set of commonly-used numeric type constraints that do not ship with
21       Moose by default.
22
23       •   "PositiveNum"
24
25       •   "PositiveOrZeroNum"
26
27       •   "PositiveInt"
28
29       •   "PositiveOrZeroInt"
30
31       •   "NegativeNum"
32
33       •   "NegativeOrZeroNum"
34
35       •   "NegativeInt"
36
37       •   "NegativeOrZeroInt"
38
39       •   "SingleDigit"
40

SEE ALSO

42       •   MooseX::Types::Common::String
43

SUPPORT

45       Bugs may be submitted through the RT bug tracker
46       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Types-Common>
47       (or bug-MooseX-Types-Common@rt.cpan.org <mailto:bug-MooseX-Types-
48       Common@rt.cpan.org>).
49
50       There is also a mailing list available for users of this distribution,
51       at <http://lists.perl.org/list/moose.html>.
52
53       There is also an irc channel available for users of this distribution,
54       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
55

AUTHORS

57       •   Matt S Trout - mst (at) shadowcatsystems.co.uk
58           (<http://www.shadowcatsystems.co.uk/>)
59
60       •   K. James Cheetham <jamie@shadowcatsystems.co.uk>
61
62       •   Guillermo Roditi <groditi@gmail.com>
63
65       This software is copyright (c) 2009 by Matt S Trout - mst (at)
66       shadowcatsystems.co.uk (<http://www.shadowcatsystems.co.uk/>).
67
68       This is free software; you can redistribute it and/or modify it under
69       the same terms as the Perl 5 programming language system itself.
70
71
72
73perl v5.36.0                      2023-01-20 MooseX::Types::Common::Numeric(3)
Impressum