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

use MouseX::Types::Common::String qw/SimpleStr/;
has short_str => (is => 'rw', isa => SimpleStr);
...
#this will fail
$object->short_str("string\nwith\nbreaks");

A set of commonly-used string type constraints that do not ship with Mouse by default.
A Str with no new-line characters.
Does what it says on the tin.


Please see:: MouseX::Types::Common