MooX(3)

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

πŸ’– MooX πŸ’–

okay so bestie, gather round, because this is MooX β€” the manual page from User Contributed Perl Documentation, and honestly? it's giving "using Moo and MooX:: packages the most lazy way". no cap. that's literally the NAME. 🫢


✨ VERSION ✨

version 0.101 β€” yes queen, that's the version, we're on 0.101 and we're thriving. πŸŽ€


🌈 SYNOPSIS 🌈

okay so this is the part where you just look at the code and it clicks, iykyk:

package MyClass;

use MooX qw(
  Options
);

# use Moo;
# use MooX::Options;

package MyClassComplex;

use MooX
  SomeThing => [qw( import params )],
  'OtherThing', MoreThing => { key => 'value' },
  '+NonMooXStuff';

# use Moo;
# use MooX::SomeThing qw( import params );
# use MooX::OtherThing;
# use MooX::MoreThing key => 'value';
# use NonMooXStuff;

package MyMoo;

use MooX ();

sub import { MooX->import::into(scalar caller, qw( A B +Carp )) }

# then you can do: use MyMoo; which does the same as:
# use Moo;
# use MooX::A;
# use MooX::B;
# use Carp;

so like β€” one use MooX and it just does the thing. the way that it expands into all your use Moo; and use MooX::Whatever; lines for you? iconic. πŸ’… the + prefix is how you pull in a non-MooX module, and the plain name is how you get MooX:: glued on the front. and the custom import sub with MooX->import::into(scalar caller, qw( A B +Carp )) is how you build your own little wrapper so use MyMoo; does the exact same thing. main character energy fr fr. 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

Using Moo and MooX:: packages the most lazy way. that's it, that's the whole description, and honestly? she said what she said. the laziest way is the correct way and we respect it. periodt. πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

Import::Into

(that's your girl, go read her too πŸ’–)


πŸŽ€ SUPPORT πŸŽ€

Repository

http://github.com/Getty/p5-moox
Pull request and additional contributors are welcome

pull requests and additional contributors are welcome β€” like actually, come through, the door is open, we want you here. 🫢

Issue Tracker

http://github.com/Getty/p5-moox/issues

found a bug? drop it in the issue tracker bestie, don't suffer in silence. 😭


🌟 AUTHOR 🌟

Torsten Raudssus <torsten@raudss.us>

(we love a named author, we stan accountability πŸ’œ)


This software is copyright (c) 2012 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

so yes bestie, 2012, Torsten Raudssus, free software, same terms as the Perl 5 programming language system itself. redistribute it, modify it, go off. πŸ’…βœ¨

and that's the whole page!! this one came from the User Contributed Perl Documentation for MooX(3), version 0.101, and it was generated by perl v5.42.0 on 2025-07-25. mwah, love u, go write something lazy and beautiful. πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from