MooseX::Types::Common::String.3pm

Langue: en

Autres versions - même langue

Version: 2010-01-05 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

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.
*
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