I would suggest looking at any one of a number of config.ini Perl modules. I have used: use Config::INI::Reader; in some projects. There is a "Tiny" version.
if you have something like:
[sectionA]
parm_1 = a, b, c
[sectionB]
something = x y z
I would suggest using one of these modules.