The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MooX - Using Moo and MooX:: packages the most lazy way

VERSION

version 0.101

SYNOPSIS

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;

DESCRIPTION

Using Moo and MooX:: packages the most lazy way

SEE ALSO

Import::Into

SUPPORT

Repository

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

Issue Tracker

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

AUTHOR

Torsten Raudssus <[email protected]>

COPYRIGHT AND LICENSE

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.