D
Derek.Moody
Background:
I have a couple of dozen perl scripts to reconcile. It seems they grew on
an ad-hoc basis and there is a good deal of duplicated content some of which
has been allowed to get out of step. For ease of maintenance I am
extracting these into two or three modules. I anticipate future
developments requiring at least as many new scripts and another three or
four modules so that no one script will require more than two, or
perhaps three of these modules.
The question:
For ease of future maintenance, especially for (s)he who may come after me -
* Do I import all subroutines and data so that the call might be
&dosomething($parameter);
* Or do I use full references
&Foo::dosomething($Bar:arameter);
Especially as some variable names will be duplicated in alternate packages.
Opinions solicited:
If you were hired to maintain my legacy (say 50 scripts, 8 modules) which
form would you prefer?
As you may guess I favour the second version - am I overlooking any
potential pitfalls?
Tia. Cheerio,
--
I have a couple of dozen perl scripts to reconcile. It seems they grew on
an ad-hoc basis and there is a good deal of duplicated content some of which
has been allowed to get out of step. For ease of maintenance I am
extracting these into two or three modules. I anticipate future
developments requiring at least as many new scripts and another three or
four modules so that no one script will require more than two, or
perhaps three of these modules.
The question:
For ease of future maintenance, especially for (s)he who may come after me -
* Do I import all subroutines and data so that the call might be
&dosomething($parameter);
* Or do I use full references
&Foo::dosomething($Bar:arameter);
Especially as some variable names will be duplicated in alternate packages.
Opinions solicited:
If you were hired to maintain my legacy (say 50 scripts, 8 modules) which
form would you prefer?
As you may guess I favour the second version - am I overlooking any
potential pitfalls?
Tia. Cheerio,
--