1 package MooseX::Types::Common;
7 our $VERSION = '0.001007';
12 cluck("Tried to import the symbols " . join(', ', @_)
13 . " from MooseX::Types::Common.\nDid you mean "
14 . "MooseX::Types::Common::String or MooseX::Type::Common::Numeric?");
21 MooseX::Types::Common - A library of commonly used type constraints
25 use MooseX::Types::Common::String qw/SimpleStr/;
26 has short_str => (is => 'rw', isa => SimpleStr);
30 $object->short_str("string\nwith\nbreaks");
34 use MooseX::Types::Common::Numeric qw/PositiveInt/;
35 has count => (is => 'rw', isa => PositiveInt);
43 A set of commonly-used type constraints that do not ship with Moose by default.
49 =item * L<MooseX::Types::Common::String>
51 =item * L<MooseX::Types::Common::Numeric>
53 =item * L<MooseX::Types>
55 =item * L<Moose::Util::TypeConstraints>
61 This distribution was extracted from the L<Reaction> code base by Guillermo
64 The original authors of this library are:
70 =item * K. J. Cheetham
72 =item * Guillermo Roditi
78 This library is free software, you can redistribute it and/or modify
79 it under the same terms as Perl itself.