my %row = $hashes[cnt]; where cnt is the row that you want to access. Or even better: foreach my %row (@hashes){ #then access each item in the hash with $row{qty}, or #go through all the keys using "foreach my $key (sort keys %row)" }