1MooseX::Types::Common::USsterrinCgo(n3t)ributed Perl DocMuomoesnetXa:t:iToynpes::Common::String(3)
2
3
4

NAME

6       MooseX::Types::Common::String - Commonly used string types
7

SYNOPSIS

9           use MooseX::Types::Common::String qw/SimpleStr/;
10           has short_str => (is => 'rw', isa => SimpleStr);
11
12           ...
13           #this will fail
14           $object->short_str("string\nwith\nbreaks");
15

DESCRIPTION

17       A set of commonly-used string type constraints that do not ship with
18       Moose by default.
19
20       ·   SimpleStr
21
22           A Str with no new-line characters.
23
24       ·   NonEmptySimpleStr
25
26           Does what it says on the tin.
27
28       ·   Password
29
30       ·   StrongPassword
31
32       ·   NonEmptyStr
33

SEE ALSO

35       ·   MooseX::Types::Common::Numeric
36

AUTHORS

38       Please see:: MooseX::Types::Common
39
40
41
42perl v5.12.4                      2011-08-31  MooseX::Types::Common::String(3)
Impressum