Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my %energy_hash = map {$amount [$_] => [$chocolate[$_] => $sweets[$_] +] } 0..$#amount; print $energy_hash {"10"}[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: multi-dimensional hashes
by broquaint (Abbot) on Feb 27, 2003 at 15:16 UTC | |
|
Re: multi-dimensional hashes
by tachyon (Chancellor) on Feb 27, 2003 at 15:36 UTC |