Hi monks,
I have an array and its value.
@array=("one", "two", "one" "three", "four", "one", "two");
I need hash value like the below i.e. how many times words comes in array.
$hash={"one" => 3, "two" => 2, "three" => 1, "four" => 1}Can you help me how to get like that.
Thank you.
In reply to Count of array value into hash by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |