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


MooseX-Types-Common documentation  | view source Contained in the MooseX-Types-Common distribution.

Index


NAME

Top

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

SYNOPSIS

Top

    use MooseX::Types::Common::String qw/SimpleStr/;
    has short_str => (is => 'rw', isa => SimpleStr);

    ...
    #this will fail
    $object->short_str("string\nwith\nbreaks");

DESCRIPTION

Top

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

Top

* MooseX::Types::Common::Numeric

AUTHORS

Top

Please see:: MooseX::Types::Common


MooseX-Types-Common documentation  | view source Contained in the MooseX-Types-Common distribution.