in reply to Read a config file

Anonymous Monk,
Perl's killer app is CPAN. Perhaps you should check out some of the existing solutions for Config::. My favorite for some reason is Config::IniFiles.

Cheers - L~R