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
in thread When is a module too minimal?
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |