go ahead... be a heretic | |
PerlMonks |
Re: How to keep the order of keys in hashby perlfan (Vicar) |
on Jul 09, 2014 at 17:47 UTC ( [id://1092949]=note: print w/replies, xml ) | Need Help?? |
I think you want to use Tie::Hash::Indexed, maybe.
I don't think that Data::Dumper is going to show you want you want since it's the internal implementation of the hash's accessors via the Tie::Hash interface that actually provide the ordering you need. If you need to maintain some sorted order not related to insert order, then you might need to look as some sort of Perl based heap implementation like, Heap::Simple.
In Section
Seekers of Perl Wisdom
|
|