Hashes
-
Just like an array, but access the elements by a key, not a numerical
index.
-
Also called Associative Arrays.
-
More 'natural' than traditional arrays.
-
Identified with %
-
Useful in web programming, because the key can be the name of the field,
and the value would be the data entered by the user.
-
Also handy for writing simple data to a file and reading it back.
Declare a hash, get data back
Home