Too long since I've done any Perl (really should get in practice I s'pose, but I thought I'd wait until Perl6 was finalised 🙂)
The two syntaxes of foreach() are
foreach($array as $value)
{ // giving you each successive value in the array
}
and
foreach($array as $key=>$value)
{ // giving you each successive key/value pair, i.e.
// such that $array[$key]==$value
}
Dunno if you're respecting sections in the .ini file, (by setting that flag), but if you aren't, then you'll be wanting
foreach($myfile_ini as $key=>$value)
{ echo $key.'-'.$value.'<br>';
}
If you are, then you'd want a nested pair of foreach loops, with the outer one iterating over the sections.