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 reply to Re: Parameters not in order by using Config::Tiny
by GotToBTru
in thread Parameters not in order by using Config::Tiny
by bhushanQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |