For each name in the array, if the name already exists in the hash as key, then increment the value by 1; but if not, then add the name to the hash with the initial value of 1.
Hope it helps.
In reply to Re^3: Required guidance to simplify this program
by 2teez
in thread Required guidance to simplify this program
by vyeddula
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |