in reply to Mapping to an associative hash
while (<FILE>) { my %data; chomp; @data{@keys} = split /\t/; # then call subroutine } [download]