Squirrel(3pm)
π Squirrel
okay bestie, so this is the Squirrel page from the User Contributed Perl Documentation, and the whole vibe is: use Mouse, unless Moose is already loaded. That's it, that's the tweet. Oh and also β it's DEPRECATED π (more on that in a sec, don't panic).
β¨ NAME
Squirrel β use Mouse, unless Moose is already loaded. (DEPRECATED) π«Ά
π SYNOPSIS
like, literally just:
use Squirrel;
has goggles => (
is => "rw",
);
that's the whole thing. has justβ¦ works. whichever friend shows up. π
π DEPRECATION
so. real talk. "Squirrel" is deprecated. no cap. π
"Any::Moose" provides the same functionality, but better. :) β and yes the original really did put a smiley face there, and yes it's giving "we're not mad, we're just disappointed" energy. go use Any::Moose instead, bestie. π«Ά
π¦ DESCRIPTION
Moose and Squirrel are THE BEST FRIENDS π β iconic duo, no notes β but if Moose isn't there, Squirrel will hang out with Mouse as well. lowkey adaptable. main character energy. π
So when your own code doesn't actually care whether or not you use Moose or Mouse, you can use either, and let your users decide for you. it's giving "you pick the restaurant, i'm flexible" π
This lets you run with minimal dependencies and have a faster startup β β but if Moose is already in use, you get all the benefits of using that:
- transformability
- introspection
- more opportunities for code reuse
- etc.
basically: best of both worlds, and you didn't even have to pick. slay. π
πΈ SEE ALSO
Any::Mooseβ the one you should actually be using, iykyk π
β¨ that's the whole page, bestie β¨ this was perl v5.42.2, dated 2026-04-21 β and it's the Squirrel(3pm) page, out here living its deprecated little life. go forth and use Any::Moose ππ§π
π¦ where this page comes from
- alpine 3.24: perl-mouse-doc 2.6.2-r0 Β· 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