Mo::import - Special import feature for Mo::Inline
package MyMo; # use Mo qw[default builder import]; package SomeClass; use MyMo; has foo => (builder => 'build_foo');
If you are defining your own Mo class for a project, and you want it to always use a default set of features, you should add import to the end of the list. Then by calling:
import
use MyMo;
you get the default set: default and builder. If you just want default, do this:
default
builder
use MyMo 'default';
If you want no features for a particular class, use:
use MyMo '';
This feature is probably not useful, and possibly problematic, outside of Mo::Inline usage.
To install Mo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mo
CPAN shell
perl -MCPAN -e shell install Mo
For more information on module installation, please visit the detailed CPAN module installation guide.