in reply to How can I count and display unique items in an array? (was: array counting)
@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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: array counting
by Aristotle (Chancellor) on Jun 21, 2002 at 18:26 UTC |