Command line tool coding style?by Aristotle (Chancellor)
|on Jan 16, 2002 at 01:56 UTC||Need Help??|
Aristotle has asked for the
wisdom of the Perl Monks concerning the following question:
I just came up with the following style to write a script that is called as in foo.pl add --bar or foo.pl mod --baz etc. What do you think of this? (For perfection, rather than simply dieing on a bad parameter it should go through Pod::Usage first, but I didn't bother to add that here.) The main trick, of course, is the new main. Did I outhack myself?