Mo::Moose(3)
π 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 sayshas foo => ();and the example down here saysuse 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
- fedora 43: perl-Mo-Moose 0.40-28.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms