Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Count and List Items in a Listby perlfan (Vicar) |
on Nov 01, 2005 at 15:36 UTC ( [id://504606]=note: print w/replies, xml ) | Need Help?? |
Assuming you get "results.txt" into an array, "@lists":
And the hash "%counts" will contain the item as a key and its count as the key's value. This is really a short version of the first post, but map is a neat function :). pF
In Section
Seekers of Perl Wisdom
|
|