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