my %hash; while () { chomp; my ($k, $v) = split /\s+/, $_, 2; $hash{$k} = $v; }