MouseX:...::String(3)

πŸ“¦
version 0.001000 Β· 3 versions
, in epel 10

✨ 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 β€” a Str with 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