good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Single file oriented for different usageby Ineffectual (Scribe) |
on Feb 26, 2008 at 18:23 UTC ( [id://670340]=note: print w/replies, xml ) | Need Help?? |
We use a package called Config::Inifiles for all of our configuration files. You can have sections in a file that have headings and load information from each of the headings in your code. You should be able to make a [GLOBAL] setting and a [DEV] section. You should probably include a second ini file for the authentication information though and have your package expect there to be two files (one with GLOBAL/DEV settings and one with AUTH information).
In Section
Seekers of Perl Wisdom
|
|