1MooX(3) User Contributed Perl Documentation MooX(3)
2
3
4
6 MooX - Using Moo and MooX:: packages the most lazy way
7
9 version 0.101
10
12 package MyClass;
13
14 use MooX qw(
15 Options
16 );
17
18 # use Moo;
19 # use MooX::Options;
20
21 package MyClassComplex;
22
23 use MooX
24 SomeThing => [qw( import params )],
25 'OtherThing', MoreThing => { key => 'value' },
26 '+NonMooXStuff';
27
28 # use Moo;
29 # use MooX::SomeThing qw( import params );
30 # use MooX::OtherThing;
31 # use MooX::MoreThing key => 'value';
32 # use NonMooXStuff;
33
34 package MyMoo;
35
36 use MooX ();
37
38 sub import { MooX->import::into(scalar caller, qw( A B +Carp )) }
39
40 # then you can do: use MyMoo; which does the same as:
41 # use Moo;
42 # use MooX::A;
43 # use MooX::B;
44 # use Carp;
45
47 Using Moo and MooX:: packages the most lazy way
48
50 Import::Into
52 Repository
53
54 http://github.com/Getty/p5-moox
55 Pull request and additional contributors are welcome
56
57 Issue Tracker
58
59 http://github.com/Getty/p5-moox/issues
60
62 Torsten Raudssus <torsten@raudss.us>
63
65 This software is copyright (c) 2012 by Torsten Raudssus.
66
67 This is free software; you can redistribute it and/or modify it under
68 the same terms as the Perl 5 programming language system itself.
69
70
71
72perl v5.32.0 2020-07-28 MooX(3)