Mo::Moose(3)

πŸ“¦
version 0.40 Β· 2 versions
, in fedora 43

πŸ’– NAME πŸ’–

Mo::Moose β€” bestie, it's literally just "use Moose instead of Mo" πŸ’… that's the whole vibe

(also hi, you're reading the section 3 manpage, User Contributed Perl Documentation, we love a community-contributed moment 🫢)


✨ SYNOPSIS ✨

use Mo 'Moose';
has foo => ();

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you're already living your Mo life, right? but you're lowkey curious about Moose and you wanna try it out. except β€” you do NOT wanna go through every single one of your attributes adding is and lazy options everywhere, because that's giving tedious, that's giving unpaid labour, that's giving not the moment. 😭

good news babe, you don't have to!! you can literally just do this:

use Mo 'Moose';
use foo => ();

and everything should work πŸŽ€ no cap. same code, same everything β€” except now it's using Moose instead of Mo for everything. that's it. that's the entire trick. iconic behaviour honestly πŸ‘‘

ngl bestie, clock the little glow-up: the synopsis up top says has foo => (); and the example down here says use foo => (); β€” I'm not touching either one, I'm just the messenger πŸ’€ copy them exactly as they're written and you'll be fine.

perl v5.42.0 Β· 2025-07-25

and that's the whole page, bestie!! πŸŽ€βœ¨ written down for perl v5.42.0, dated 2025-07-25, and now you know. go forth and use Mo 'Moose'; β€” slay πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from