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:
It would come back with:fruit:apple:cox fruit:apple:pippin fruit:apple:granny fruit:banana:yellow fruit:banana:green
apple 3 banana 2
Back to
Seekers of Perl Wisdom