GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Mo::import(3) User Contributed Perl Documentation Mo::import(3)

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:

    use MyMo;

you get the default set: "default" and "builder". If you just want "default", do this:

    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.
2016-07-06 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.