in reply to Includes, strict and pointers.

lagrenouille

use Config::Properties

Contents of a properties file.
dbdriver = DBI:mysql
dbname = DatabaseName
dbhost = localhost
dbport = 3306
dbuser = root
dbpass = rotorooter

You would not believe how awesome that module is. I have 3 different databases to access (At work). I use the same script to access, and disconnect for each of them. I simply feed the script a fh reference to the proerties file, or the properties file name, and the script does the rest.

If you like, I will post the code here for you.

Kristofer Hoch