in reply to designing layout of a program
Move as much as you can out to configuration. It makes no sense at all to maintain scripts that do precisely the same thing except that each hardcode a different set of constants. If your users cannot possibly stomach
load.pl --dataset marketing load.pl --dataset sales
Then write load.pl that way anyway, but just provide them with two wrapper scripts (or aliases, or desktop shortcuts, whatever).
If logic does differ, but there is some untrivial overlap, factor out the common behavior to a module. See perlmod and, for example, Module::Starter if you aren't sure how to do that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: designing layout of a program
by punkish (Priest) on Mar 29, 2006 at 18:58 UTC | |
by gaal (Parson) on Mar 29, 2006 at 19:15 UTC |