Welcome to the Monastery | |
PerlMonks |
Re: Parameters not in order by using Config::Tinyby GotToBTru (Prior) |
on Jul 06, 2015 at 13:12 UTC ( [id://1133356]=note: print w/replies, xml ) | Need Help?? |
UPDATE: never mind! Better choice of module as suggested by Corion will solve this issue. Hashes don't store their keys in order, so that's why (keys %...) returns them in a way you don't expect. For the inner case, replace (keys %{$config->{$section}})with (sort keys %{$config->{$section}}For the outer loop, perhaps store the sections in array instead of a hash?
In Section
Seekers of Perl Wisdom
|
|