The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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

AUTHORS

Please see:: MooseX::Types::Common