in reply to How to find number of unique elemenst in array
my %counts; ++$counts{$_} for @array; print("There are $counts{$_} element(s) of $_\n") for sort keys %counts;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to find number of unique elemenst in array
by gasho (Beadle) on Nov 27, 2008 at 20:41 UTC |