MooseX::Compile::Compiler - The Moose metaclass .pmc compiler
.pmc
my $compiler = MooseX::Compile::Compiler->new(); $compiler->compile_class( class => "Foo::Bar", file => $INC{"Foo/Bar.pm"}, pmc_file => "my/pmc/lib/Foo/Bar.pmc", );
This class does the heavy lifting of emitting a .pmc and a .mopc for a given class.
.mopc
This is alpha code. You can tinker, subclass etc but beware that things definitely will change in the near future.
When a final version comes out there will be a documented process for how to extend the compiler to handle your classes, whether by subclassing or using various hooks.
To install MooseX::Compile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Compile
CPAN shell
perl -MCPAN -e shell install MooseX::Compile
For more information on module installation, please visit the detailed CPAN module installation guide.