MooX - Using Moo and MooX:: packages the most lazy way
version 0.101
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;
Using Moo and MooX:: packages the most lazy way
Repository
http://github.com/Getty/p5-moox Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-moox/issues
Torsten Raudssus <torsten@raudss.us>
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.
To install MooX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooX
CPAN shell
perl -MCPAN -e shell install MooX
For more information on module installation, please visit the detailed CPAN module installation guide.