Mo::Inline(3)
π Mo::Inline π
okay bestie so this is the manual page for Mo::Inline, from the User Contributed Perl Documentation β the β¨glow-upβ¨ guide to yeeting your Mo dependency straight into your own code. no cap, it's literally the cutest thing. let's go π¦
β¨ SYNOPSIS β¨
so like, first up β in your Mo module:
# This is effectively your own private Mo(ose) setup
package MyModule::Mo;
# use Mo qw'build builder default import';
1;
then from the command line:
> mo-inline lib/MyModule/Mo.pm
or:
> mo-inline lib/
or (if you are really lazy π« ):
> mo-inline
and then, from another module:
package MyModule::Foo;
use MyModule::Mo; # gets build, builder and default automatically
like. it just works. slay. π
πΈ DESCRIPTION πΈ
so here's the tea β β Mo is so small that you can easily inline it, along with any feature modules. Mo literally ships a script called mo-inline that will do it for you. it's giving personal assistant energy, honestly.
all you need to do is comment out the line that uses Mo, and run mo-inline on the file. mo-inline will find such comments and do the inlining for you. and it will also replace any old inlined Mo with the latest version. so it's not just a one-time thing, it's a whole maintenance vibe. π₯
What Mo could you possibly want? π (yes that's literally the original flex and we're keeping it, iconic)
π AUTOMATIC FEATURES π
by using the Mo::import feature, all uses of your Mo class will turn on all the features you specified. you can override it if you want, bestie β but that will be the default. so like, just know what you're signing up for. π
π REAL WORLD EXAMPLES π
for real world examples of Mo inlined using mo-inline, go look at YAML::Mo, Pegex::Mo and TestML::Mo. actual receipts, not just my word for it. β
and that's the whole page, bestie π«Ά β this was perl v5.42.0, dated 2025-07-25. go inline something cute. bye!! πβ¨π
π¦ 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