- or download this
my @bits = split ' ', $line;
- or download this
$bits[3] =~ s/\.(\w+)$/$1/;
- or download this
$count{$bits[3]}{$bits[4]}++;
- or download this
foreach $type (keys %count) {
foreach (keys %count{$type}) {
print "$type $_ $count{$type}{$_}";
}
}