Mo::exports(3)

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

πŸ’– 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