The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

mite - A Perl OO compiler

SYNOPSIS

    cd Your-Project
    mite init Your-Project
    ...write code with use Your::Project::Mite...
    mite compile

DESCRIPTION

mite is a Perl compiler for Mite, a Moose-like module for doing object oriented code. Unlike others, code using Mite has no dependencies, even on Mite itself.

mite allows you to write object-oriented Perl modules without any dependencies. There is also no startup cost to build the classes, they are already built.

mite compiles not into C, but into more Perl. Each .pm file which uses Mite will have an associated .mite.pm file which contains the additional code implementing the class. This is pure Perl code and will load as fast as any other Perl.

COMMANDS

init

    mite init <project name>

Initializes a project to use Mite.

Creates a .mite directory in the current directory where the configuration file .mite/config is stored.

Generates the project specific mite shim file.

compile

    mite compile

Reads each .pm file and creates the necessary extra mite code so it will run.

You must run mite compile after editing any file which uses Mite.

NOTE

You must rerun mite compile after every change to a file which uses Mite.

BUGS

Please report any bugs to https://github.com/tobyink/p5-mite/issues.

SEE ALSO

Mite

AUTHOR

Michael G Schwern <mschwern@cpan.org>.

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2011-2014 by Michael G Schwern.

This software is copyright (c) 2022 by Toby Inkster.

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

DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.