MouseX:...::String(3)
β¨ NAME β¨
Okay bestie, welcome to MouseX::Types::Common::String(3) β a User Contributed Perl Documentation moment. This is literally a set of commonly-used string type constraints. That's the whole name vibe π
π SYNOPSIS π
Here's the copy-paste moment, exactly as the page gives it:
use MouseX::Types::Common::String qw/SimpleStr/;
has short_str => (is => 'rw', isa => SimpleStr);
...
#this will fail
$object->short_str("string\nwith\nbreaks");
That last call is the fail demo β the comment says #this will fail, so don't act surprised π
πΈ DESCRIPTION πΈ
A set of commonly-used string type constraints that do not ship with Mouse by default. So yeah, you gotta bring them in yourself.
SimpleStrβ aStrwith no new-line characters.NonEmptySimpleStrβ literally does what it says on the tin.Passwordβ it's on the list, bestie; the page doesn't spill extra details.StrongPasswordβ also listed, no extra description in the source.NonEmptyStrβ listed too, no extra description here.
π¦ SEE ALSO π¦
MouseX::Types::Common::Numericβ the see-also, right there.
π AUTHORS π
The authors line says: Please see:: MouseX::Types::Common β yes, with the double colon. Not me typo-ing, fr fr π
That's the whole page, bestie π β it came with perl v5.40.0 and is dated 2024-07-19. π«Ά
π¦ where this page comes from
- epel 10: perl-MouseX-Types-Common 0.001000-9.el10_0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms