in reply to What is the easiest way of having a configuration file for my program?

Here's a way to have multiple config files for a single script. They're specified with a query such as myscript.pl?config1, myscript.pl?config2, etc.
$config=$ENV{QUERY_STRING}; unless(require $config){ print "No Configuration File Specified!\n"; exit; }
I learned that from Brent Michalski's excellent database tutorials that used to be at webreview.com
  • Comment on Re: What is the easiest way of having a configuration file for my program?
  • Download Code