man : MooseX::Types::Common::String
MooseX::Types::UseroContributedpPMooseX::Types::Common::String(3p)
NAME
MooseX::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.
o SimpleStr
A Str with no new-line characters.
o NonEmptySimpleStr
Does what it says on the tin.
o Password
o StrongPassword
o NonEmptyStr
SEE ALSO
o MooseX::Types::Common::Numeric
AUTHORS
Please see:: MooseX::Types::Common
perl v5.12.2 2010-01-04 1
|