Hash/Associative array is the one in which all the values are stored in terms of keys and values.
i.e., the values are indexed with the help of keys. You cannot get back the values in a correct order as it happens in normal array. because in this values are stored in random positions. The only way to get in a correct order is to sort that array.
ex: %hash = {"Name","Raghav","Age","26"}; $hash{'Name'} will give "Raghav" $hash{'Age'} will give "26"
|