in reply to Reading from an INI file
Before you reinvent the wheel (and make all the same mistakes that somebody else already has along the way), you may well be better off using Config::IniFiles.
HTH!
In Section
Seekers of Perl Wisdom
in reply to Reading from an INI file
HTH!