in reply to Re: Determining hash order for sorting array
in thread Determining hash order for sorting array

I believe (haven't actually used it personally) that Tie::Hash can (will?) preserve hash order for you.
It doesn't. However, there's a few modules that serve to tie a hash so its keys order is the same as the insertion order: Tie::IxHash (Pure Perl) and Tie::Hash::Indexed (ditto, but XS).
  • Comment on Re^2: Determining hash order for sorting array