Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: What's your Module Template

by polypompholyx (Chaplain)
on Sep 15, 2005 at 10:13 UTC ( [id://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.

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.

    -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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://492157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found