1MouseX::Types::Common::UNsuemrerCiocn(t3r)ibuted Perl DoMcouumseenXt:a:tTiyopnes::Common::Numeric(3)
2
3
4
6 MouseX::Types::Common::Numeric - A set of commonly-used numeric type
7 constraints
8
10 use MouseX::Types::Common::Numeric qw/PositiveInt/;
11 has count => (is => 'rw', isa => PositiveInt);
12
13 ...
14 #this will fail
15 $object->count(-33);
16
18 A set of commonly-used numeric type constraints that do not ship with
19 Mouse by default.
20
21 • PositiveNum
22
23 • PositiveInt
24
25 • NegativeNum
26
27 • Int
28
29 • SingleDigit
30
32 • MouseX::Types::Common::String
33
35 Please see:: MouseX::Types::Common
36
37
38
39perl v5.38.0 2023-07-21 MouseX::Types::Common::Numeric(3)