"Perl for Perl Newbies" - Part 5 - Good Programming PracticesModule-Build and Module-StarterThe Module-Starter Invocation Command

8.1. The Module-Starter Invocation Command

After you install Module-Starter, you can type module-starter --helpto get the help for it, and get a result such as the following:

Usage:
    module-starter [options]

    Options:

        --module=module  Module name (required, repeatable)
        --distro=name    Distribution name (optional)
        --dir=dirname    Directory name to create new module in (optional)

        --builder=module Build with 'ExtUtils::MakeMaker' or 'Module::Build'
        --eumm           Same as --builder=ExtUtils::MakeMaker
        --mb             Same as --builder=Module::Build
        --mi             Same as --builder=Module::Install

        --author=name    Author's name (required)
        --email=email    Author's email (required)
        --license=type   License under which the module will be distributed
                         (default is the same license as perl)

        --verbose        Print progress messages while working
        --force          Delete pre-existing files if needed

        --help           Show this message

    Available Licenses: perl, bsd, gpl, lgpl, mit

    Example:

        module-starter --module=Foo::Bar,Foo::Bat \
            --author="Andy Lester" --email=andy@petdance.com

Let's show an example invocation for our own module called MyMath::Opswhich will contain some silly mathematical routines:

module-starter
--distro=MyMath::Ops
\

--dir=MyMath-Ops
\

--module=MyMath::Ops
\

--module=MyMath::Ops::Add
\

--module=MyMath::Ops::Multiply
\

--module=MyMath::Ops::Subtract
\

--module=MyMath::Ops::Divide
\

--mb
\

--author=
"
Perl Newbie
"
\

--email=
'
perl-newbie@perl-begin.org
'
\

--verbose

Written by Shlomi Fish