@list = qw(bing spam bing sponge bob pub time wibble sponge sponge); $count{$_}++ for @list; print map {"$_\t$count{$_}\n"} sort keys %count;
--
Steve Marvell
In reply to Re: array counting
by marvell
in thread How can I count and display unique items in an array? (was: array counting)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |