my %energy_hash = map {$amount [$_] => [$chocolate[$_] => $sweets[$_] +] } 0..$#amount; print $energy_hash {"10"}[1]; [download]
In reply to multi-dimensional hashes by Anonymous Monk