my %data; open(DATA, $file) || die "Can't open $file: $!\n"; while () { my ($town, @vals) = split(/\t/); $data{$town} = \@vals; }