in reply to Counting repeated values from an array

foreach (@names) {$count{$_}++;} foreach (keys %count) {print "$_ = ".$count{$_}."\n";}