MouseX...:Mouse(3pm)
π MouseX::Types::Mouse π
okay so bestie, this is the manual page for MouseX::Types::Mouse(3pm), and it's literally the type catalog that ships with Mouse πβ¨ β like, the little box of types you get handed for free. That's the whole vibe. It's giving "you don't have to build your own types from scratch, queen." π
β¨ SYNOPSIS β¨
here's the whole flex, verbatim, no edits, I would never π:
package Foo;
use Mouse;
use MouseX::Types::Mouse qw( Int ArrayRef );
has name => (
is => 'rw',
isa => Str;
);
has ids => (
is => 'rw',
isa => ArrayRef[Int],
);
1;
so the way that works, bestie: you use Mouse, you pull in Int and ArrayRef from MouseX::Types::Mouse with that qw( ... ) list, and then you just... hand them to isa in your has declarations. that's it. that's the move. π
ArrayRef[Int] is the iconic one β parameterized type, main character energy, telling everyone your array is full of ints. π
πΈ SEE ALSO πΈ
MouseX::Typesβ the bigger picture, go look π¦Mouse::Util::TypeConstraintsβ where the type machinery lives π§
and that's the whole page!! short, sweet, slay. π
this little icon was served up with perl v5.34.0, dated 2022-06-16 β so go forth and type-check your attributes, bestie. π«Ά no cap. π
π¦ where this page comes from
- debian bookworm: libmousex-types-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmousex-types-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmousex-types-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmousex-types-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmousex-types-perl 0.06-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms