MooseX::Types::Common:UseriContributed Perl DoMooseX::Types::Common::String(3)NAMEMooseX::Types::Common::String - Commonly used string types
SYNOPSIS
use MooseX::Types::Common::String qw/SimpleStr/;
has short_str => (is => 'rw', isa => SimpleStr);
...
#this will fail
$object->short_str("string\nwith\nbreaks");
DESCRIPTION
A set of commonly-used string type constraints that do not ship with
Moose by default.
· SimpleStr
A Str with no new-line characters.
· NonEmptySimpleStr
Does what it says on the tin.
· Password
· StrongPassword
· NonEmptyStr
SEE ALSO
· MooseX::Types::Common::Numeric
AUTHORS
Please see:: MooseX::Types::Common
perl v5.14.1 2011-08-31 MooseX::Types::Common::String(3)