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).
In reply to Re^2: Determining hash order for sorting array
by bart
in thread Determining hash order for sorting array
by PenguinPwrdBox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |