Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: why use a hash instead of an array

by aaron_baugher (Deacon)
on Jun 11, 2013 at 20:45 UTC ( #1038336=note: print w/ replies, xml ) Need Help??


in reply to why use a hash instead of an array

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.
Available for small or large Perl jobs; see my home node.


Comment on Re: why use a hash instead of an array

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038336]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-08-22 19:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (163 votes), past polls