I believe that sometimes a hash is referred to as a “dictionary”, and I think this is a good example in itself. If you want to find the definition of a word, then it's nice to do something like:
definition['pernicious']
Instead of trying to figure out the correct numerical index to be stored in the file.
This answer assumes that with a "hash" you basically just reference an associative array.
source
share