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::Inline(3) User Contributed Perl Documentation Mo::Inline(3)

In your Mo module:

    # This is effectively your own private Mo(ose) setup
    package MyModule::Mo;
    # use Mo qw'build builder default import';
    1;

From the command line:

    > mo-inline lib/MyModule/Mo.pm

or:

    > mo-inline lib/

or (if you are really lazy):

    > mo-inline

Then from another module:

    package MyModule::Foo;
    use MyModule::Mo;       # gets build, builder and default automatically

Mo is so small that you can easily inline it, along with any feature modules. Mo provides a script called "mo-inline" that will do it for you.

All you need to do is comment out the line that uses Mo, and run "mo-inline" on the file. "mo-inline" will find such comments and do the inlining for you. It will also replace any old inlined Mo with the latest version.

What Mo could you possibly want?

By using the Mo::import feature, all uses of your Mo class will turn on all the features you specified. You can override it if you want, but that will be the default.

For real world examples of Mo inlined using "mo-inline", see YAML::Mo, Pegex::Mo and TestML::Mo.
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.