in reply to Extract and read different columns from the file

my %h; while (<>) { chomp; my @rec = split; $h{$rec[???]} = [ @rec[???, ???, ???] ]; }

Replace the question marks with the appropriate indexes.