in reply to Editing configuration file with a CGI Perl script
Here are two alternatives to handling config files by hand:
AppConfig
Config::IniFiles