Esteemed Monken,
I come asking for your wisdom, as Super Search has failed me (or maybe I failed it?). Context, this is work-related.
We have a bunch of scripts that create reports from our database, reports of various shapes and sizes. But the more we work on these scripts (generation, we call them), we can't help but realize they all start out very similarly (strict, warnings, GetOpt, option processing...). Some reports ask for params A, B, C, others ask for A, B, D, and yet others ask for A, D, E (and so on).
We were wondering if anyone had any experience with (or could point us to an existing thread/resource/discussion about) modularizing scripts that are similar, yet still different enough.
We already have a set of specialized modules that handles all of the DB and utility/validation stuff, so would this be another one of those in-house modules? NameSpace::Report?
Many thanks, and much Perl.
-deep
PS - Apologies if I wasn't clear enough. Also, please feel free to change the title, I don't know how to make it any more explanatory/searchable...
In reply to Generalizing Similar Scripts into a Module by deep submerge
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |