NAME

MouseX::Types::Common::String - A set of commonly-used string type constraints

SYNOPSIS

    use MouseX::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 Mouse 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:: MouseX::Types::Common