> What is the best way to read a config file for a perl script. I have > some very ugly code that can do it, but I would like to find > something > cleaner.
That depends very very much on the format of the config file. You could use open() to read the file and parse it's contents into some kind of useable data structure (variables, array, hash,...) One of my favorite ways though is to put the goods I use in lots and lots of places into a module and import the goods I need: use lib '/home/me/myperlmodules'; use MySuperProgramConfig; # has all the stuff I want in @EXPORT Sorry I couldn't be more specific, I have no idea what your config file is like or what kind of info you're trying to get into the program :) Dmuey > > Thanks, > Rod. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]