http://www.perlmonks.org?node_id=119724


in reply to makeperl

Very nice. You could improve the usability of this script by adding more command line options (try Getopt::Std or Getopt::Long) that will allow the user to customize the resulting template.

Maybe you don't need the comments, maybe you want to add -T, maybe you actually want to leave out 'use strict'.

i developed a similar script many moons ago and i find myself always deleting sections and changing this and that. Some simple command line switches would take care of that problem. Just a suggestion :)

Good job on constructive laziness! :D
jeffa

Replies are listed 'Best First'.
Re: (jeffa) Re: makeperl
by Rich36 (Chaplain) on Oct 21, 2001 at 15:03 UTC
    Thanks. Using different options occured to me as well. Something like...
    -c CGI Script (add "use CGI" + -T)
    -d Database (add "use DBI" or whatever database module)
    -m add mail module
    etc.

    I'll post the new version when I get a chance to make some revisions.

    Rich36