1MooseX::Types::Common(3U)ser Contributed Perl DocumentatiMoonoseX::Types::Common(3)
2
3
4
6 MooseX::Types::Common - A library of commonly used type constraints
7
9 version 0.001014
10
12 use MooseX::Types::Common::String qw/SimpleStr/;
13 has short_str => (is => 'rw', isa => SimpleStr);
14
15 ...
16 #this will fail
17 $object->short_str("string\nwith\nbreaks");
18
19
20 use MooseX::Types::Common::Numeric qw/PositiveInt/;
21 has count => (is => 'rw', isa => PositiveInt);
22
23 ...
24 #this will fail
25 $object->count(-33);
26
28 A set of commonly-used type constraints that do not ship with Moose by
29 default.
30
32 · MooseX::Types::Common::String
33
34 · MooseX::Types::Common::Numeric
35
36 · MooseX::Types
37
38 · Moose::Util::TypeConstraints
39
41 This distribution was extracted from the Reaction code base by
42 Guillermo Roditi (groditi).
43
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
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 · Karen Etheridge <ether@cpan.org>
66
67 · Justin Hunter <justin.d.hunter@gmail.com>
68
69 · Dave Rolsky <autarch@urth.org>
70
71 · Tomas Doran <bobtfish@bobtfish.net>
72
73 · Toby Inkster <tobyink@cpan.org>
74
75 · Gregory Oschwald <oschwald@gmail.com>
76
77 · Denis Ibaev <dionys@gmail.com>
78
79 · Graham Knop <haarg@haarg.org>
80
81 · Gregory Oschwald <goschwald@maxmind.com>
82
83 · Caleb Cushing <xenoterracide@gmail.com>
84
86 This software is copyright (c) 2009 by Matt S Trout - mst (at)
87 shadowcatsystems.co.uk (<http://www.shadowcatsystems.co.uk/>).
88
89 This is free software; you can redistribute it and/or modify it under
90 the same terms as the Perl 5 programming language system itself.
91
92
93
94perl v5.30.1 2020-01-30 MooseX::Types::Common(3)