count duplicate lines (records) Mar 20, 2009 $count{$_}++ while <>; print "$count{$_} = $_" for sort(keys %count);