while(){ chomp; $hash{$_}++ for split; }