Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: What's your Module Template

by polypompholyx (Chaplain)
on Sep 15, 2005 at 10:13 UTC ( #492157=note: print w/replies, xml ) Need Help??

in reply to What's your Module Template

I use a '' script, which is basically just a thin wrapper around ExtUtils::ModuleMaker. I use the same script to generate script boilerplate too, but have to create this from a template, which has GetOpt::Long, --help and the other usual suspects pre-coded. It'd be nice if there were a CPAN module that did for scripts what ExtUtils::ModuleMaker does for modules, but I've yet to find (or I suppose, write) one.

Replies are listed 'Best First'.
Re^2: What's your Module Template
by xdg (Monsignor) on Sep 15, 2005 at 10:58 UTC

    I've been using ExtUtils::ModuleMaker::TT (which I wrote). It extends ExtUtils::ModuleMaker to use the Template Toolkit skeletons for the files it builds. It should be easy to create a "modulino" template for more script-like skeleton that could be called with a command line config-file option.

    It's been a little fragile lately given the great (and long-overdue) overhaul that jkeenan1 has just given to ExtUtils::ModuleMaker, but I just released a fresh version to CPAN this morning that is compatible with ExtUtils::ModuleMaker 0.39 and I'll be eliminating some code smells in the next couple weeks.


    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Thanks for the tip: I'll give that a go.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://492157]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2018-06-19 13:10 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (114 votes). Check out past polls.