Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create Perl module templates for more than one module in the same namespace?

Tags:

perl

I use h2xs and Module::Starter to create templates for my Perl modules. All these and others like Module::Build are great for creating one-off modules. Unfortunately, I have not been able to figure out a "clean" way of creating a family of related modules and their documentation and test suite templates in one go.

Specfically, is it possible to create A::P, A::Q, A::R ... in a single invocation of h2xs or other starter tools, or even add A::Q, A::R once a template for A::P has been created?

like image 349
Ya. Perelman Avatar asked Dec 06 '09 05:12

Ya. Perelman


1 Answers

module-starter can be invoked thus, to create all the modules in a single invocation:

module-starter --author='Example Author' [email protected] --module=A::P --module=A::Q --module=A::R --distro='My-A-Module-Distro'
like image 68
Alan Haggai Alavi Avatar answered Nov 10 '22 01:11

Alan Haggai Alavi