in reply to
preserve the order of hash
There are modules that will preserve the order in which the hash creates its keys. See this discussion about
Tie::IxHash
for example. You may need to install it from CPAN.
Comment on
Re: preserve the order of hash
In Section
Seekers of Perl Wisdom