There's more than one way to do things | |
PerlMonks |
Re: Read Hash reference from Fileby jethro (Monsignor) |
on Nov 08, 2012 at 11:34 UTC ( [id://1002878]=note: print w/replies, xml ) | Need Help?? |
If you need order, use arrays. Or if hashes are just to convenient for the data, add an order counter to the data and sort the references into an array. This array can be created after you have read in the hash, kept alongside the hash in memory and is valid as long as the hash doesn't change.
In Section
Seekers of Perl Wisdom
|
|