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.
SimpleStr
A Str with no new-line characters.
NonEmptySimpleStr
Does what it says on the tin.
Password
StrongPassword
NonEmptyStr
MouseX::Types::Common::Numeric
Please see:: MouseX::Types::Common
To install MouseX::Types::Common, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MouseX::Types::Common
CPAN shell
perl -MCPAN -e shell install MouseX::Types::Common
For more information on module installation, please visit the detailed CPAN module installation guide.