I'd have looked up a reference or two, but it's quicker to type in the code :)my %hash; $hash{$_}++ foreach (@array); print "$_: $hash{$_} " foreach (sort {$hash{$a} <=> $hash{$b}} keys %h +ash);
rdfield
In reply to Re: Count duplicates in array.
by rdfield
in thread Count duplicates in array.
by RuneK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |