View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Ingy döt Net > Mo > Mo::importer



Annotate this POD


View/Report Bugs
Module Version: 0.39   Source   Latest Release: Mo-0.40

Name ^

Mo::importer - Write your own import() extension

Synopsis ^

    package MyMo;

    sub importer {
        my ($caller, @args) = @_;

    use Mo qw[importer other features]; 

Description ^

Sometimes you need to add your own logic during Mo::import time. This feature lets you do that by defining your own importer subroutine. It will pass you the original caller pkg and the args passed in.

Note ^

You need to define the importer sub before you use Mo ..., for (hopefully) obvious reasons. :\

syntax highlighting: