Mo::exports(3)
π Name π
Mo::exporter β bestie, this one's whole job is exporting the @EXPORT list. That's it. That's the gig. π
β¨ Synopsis β¨
package MyMo;
# use Mo qw[exporter import];
package SomeClass;
use MyMo;
has foo => (builder => 'build_foo');
πΈ Description πΈ
okay so picture this: you're out here building your own Mo class for a project (main character energy fr), and you want it to always pull in a default set of features without you having to ask every single time. The move? Just add import to the end of the list. Periodt. π
Then whenever you call:
use MyMo;
you get the default set, which is default and builder. two-for-one, no cap, slay. π«Ά
But maybe you're feeling minimal and you only want default? Say less:
use MyMo 'default';
And if you want absolutely zero features for one particular class β like, none, not even a crumb β you do:
use MyMo '';
the empty string. iconic honestly. π
π¦ Note π¦
ngl, this feature is probably not useful, and possibly problematic, outside of Mo::Inline usage. so like... vibe check before you commit, bestie. π
and that's the whole page, we're done here! this lil' slice of docs comes to you courtesy of perl v5.42.0, dated 2025-07-25 β mwah, bye bye, drink some water ππβ¨
π¦ where this page comes from
- fedora 43: perl-Mo 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