Also, to get the numbers to the right of the colon, I'd have to have a count for each occurrence of each player, how might I do that?
Perhaps with something like:
my %hash; $hash{ (split /:/, $_)[0] }++ foreach (@array);
That just walks the array, spitting each entry on the : and using the part that came before the : (the player) to increment a counter each time we see it. After that, you could get the output you wanted with something like this:
print "$_:$hash{$_)\n" foreach (sort keys %hash);
Hope that helps.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]