Just another Perl shrine | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I don't just think it's OK to have a trivial driver, I think it is the goal. See for example pod2html. The one installed with my Perl is 144 lines. Of those, 137 are POD and 2 others are blank.
By carefully factoring code out of the script into modules, you allow other script and module authors to leverage your code. If you leave everything (or anything) in the script reuse becomes harder, especially if you don't use many subs. I think of a the ideal script as a mapper between command line arguments and one or more modules (not that I always achieve the ideal). Phil In reply to Re: When is a module too minimal?
by philcrow
|
|