Sprad has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to be able to have a hash variable, put things in it, then later read them back out in the same order I wrote them. I could sorta do it with a pair of arrays and an index variable, but I like being able to reference an element by its key.
What are some ways I could accomplish this?
---
A fair fight is a sign of poor planning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ordered Hashes
by liz (Monsignor) on Nov 14, 2003 at 23:16 UTC | |
by bart (Canon) on Nov 15, 2003 at 00:26 UTC | |
|
Re: Ordered Hashes
by pg (Canon) on Nov 14, 2003 at 23:20 UTC | |
|
Re: Ordered Hashes
by davido (Cardinal) on Nov 15, 2003 at 05:39 UTC | |
|
Re: Ordered Hashes
by jeffa (Bishop) on Nov 15, 2003 at 16:52 UTC | |
|
Re: Ordered Hashes
by Roger (Parson) on Nov 15, 2003 at 22:10 UTC |