my %h = map { defined ? $_ : $default } map { chomp; (split /\s+/, $_, 2)[0,1] } ;