Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
running many small, similar scriptsby qq (Hermit) |
on Jun 13, 2004 at 22:32 UTC ( [id://366367]=perlquestion: print w/replies, xml ) | Need Help?? |
qq has asked for the wisdom of the Perl Monks concerning the following question: I've got about 20ish small scripts that need to be run. More are likely to be created. They look like:
Mostly its just the arguments to the constructor that differ, but occaisionally a coderef is passed in. So these scripts all need to get run one after another. I've got something like:
This is fine, except that I've got a feeling that it could be prettier. Should I cat all the small scripts together, thus saving the cost of starting perl for each, and the use Some::Module time? (They also each open a database connection and write to it, which could be done just once.) Should I cut down the small scripts to make them just be config files (maybe yes, but I'm not sure I've time left, or how to represent a couple of 'special cases'). Is there something else I've overlooked? Thanks, qq
Back to
Seekers of Perl Wisdom
|
|