Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Single file oriented for different usageby apl (Monsignor) |
on Feb 26, 2008 at 17:12 UTC ( [id://670328]=note: print w/replies, xml ) | Need Help?? |
How about a run-string parameter with one of three possible values ( 'EXP', 'DEMO', 'LIVE'). Your single configuration file could then have EXP_DB_HOST, DEMO_DB_HOST and LIVE_DB_HOST as opposed to DB_HOST as a field.
Common fields would remain consistant, but you'd have to add a little intellegence when getting a detail that can vary.
In Section
Seekers of Perl Wisdom
|
|