in reply to finding the most popular in array
$hash{$_}++ foreach @array; foreach keys %hash { $max = $_ if $hash{$_} > $hash{$max} }; print $max, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: finding the most popular in array
by clintp (Curate) on Sep 10, 2001 at 07:29 UTC | |
by Anonymous Monk on Sep 10, 2001 at 22:26 UTC |