go ahead... be a heretic | |
PerlMonks |
Re^2: Should you use a module to hold configuration items?by Anonymous Monk |
on Sep 20, 2010 at 14:09 UTC ( [id://860847]=note: print w/replies, xml ) | Need Help?? |
You could, cautiously, say that such a design is “elegant,” if the design that you are stuck with is that “there are a bunch of separate scripts.” (Whether or not you think that having “there are a bunch of separate scripts” qualifies as “elegant” is beside the point.) All of the configuration options become available with one simple use statement. No separate parsing is required: the .pm file is the configuration file. If the options, once set, almost never ever change, that works.
In Section
Seekers of Perl Wisdom
|
|