Perl: the Markov chain saw | |
PerlMonks |
Re: Order-Preserving and Unique: Tie::IxHashby bsb (Priest) |
on Jul 31, 2003 at 05:12 UTC ( [id://279489]=note: print w/replies, xml ) | Need Help?? |
If I understand what you're after then Tie::IxHash is it.
Tie::IxHash - ordered associative arrays for Perl I has the uniqueness of a hash and the order of an array. In your case you could just use the keys and ignored the values. You can also access all normal array operations via the tied object. Brad
In Section
Meditations
|
|