Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

(jeffa) Re: makeperl

by jeffa (Bishop)
on Oct 18, 2001 at 20:20 UTC ( #119724=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2023-06-06 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (26 votes). Check out past polls.

    Notices?