my %words; while () { chomp; my ($key, $val) = split /:/; $words{$key} = $val; };