Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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 'new.pl' 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.


Comment on Re: What's your Module Template
Select or Download Code
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.

    -xdg

    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://492157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-07-13 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (251 votes), past polls