in reply to Re^3: My preferred way of handling config data in Perl is:
in thread My preferred way of handling config data in Perl is:
True, but something like a database connection string does need to be different for each build-environment you run in, ie you will surely not want the development code connecting to your production database, for example. So I would say that a DSN is a farily important thing to be able to configure,
.. unless you are going to have a configuration database, to which all code connects, and gets the dsn for it's database from there ... </sarcasm>
but really, they do something close to this $client, there are constants that come from the database, and a constant to determine the database to go to *shudder*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: My preferred way of handling config data in Perl is:
by Anonymous Monk on Dec 19, 2006 at 15:43 UTC | |
by f00li5h (Chaplain) on Dec 20, 2006 at 10:20 UTC |