Perl: the Markov chain saw | |
PerlMonks |
Re: why use a hash instead of an arrayby aaron_baugher (Curate) |
on Jun 11, 2013 at 20:45 UTC ( [id://1038336]=note: print w/replies, xml ) | Need Help?? |
Others have touched on many of the ways that hashes are useful. I'll just add that, when I have a list of values, often I'll make them the keys of a hash right from the start, rather than putting them in an array, because there's a good chance I'll need them in a hash at some later point. Aaron B.
In Section
Seekers of Perl Wisdom
|
|