The value associated to a key is the number of elements in @array which have the value of the said key.
The solution you searched for and explicited by suaveant gives 1 for each value even if the key appears many times in the array.
TMTOWTDI.
-- stefp
In reply to Re: 1 line array to hash converter
by stefp
in thread 1 line array to hash converter
by rossta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |