my %counts; while (<>) { $counts{$_}++ for split; } print "$_: $counts{$_}\n" for sort keys %counts; [download]
In reply to Re: Word incidence count by Joost in thread Word incidence count by redhotpenguin