go ahead... be a heretic | |
PerlMonks |
Re: best data structureby thelenm (Vicar) |
on Aug 28, 2002 at 15:34 UTC ( [id://193484]=note: print w/replies, xml ) | Need Help?? |
You may want to look into Tie::IxHash. That module implements Perl hashes that preserve the order in which the hash elements were added. You can use the normal hash functions, such as exists, and you can also use "arrayish" functions, such as Push and Shift.
-- Mike --
In Section
Seekers of Perl Wisdom
|
|