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