http://qs1969.pair.com?node_id=203883

willa has asked for the wisdom of the Perl Monks concerning the following question:

Given a colon-separated file, how do you count the number of lines with an identical second field that have different third fields? For example, if you gave it:
fruit:apple:cox fruit:apple:pippin fruit:apple:granny fruit:banana:yellow fruit:banana:green
It would come back with:
apple 3 banana 2