in reply to Hash of hashes assignment
$hashOfHashes{$key} = \%hash;
In other words, assign a reference to %hash to the key value of $key in %hashOfHashes. Using { } instead of \ does the same thing, but it is not what I would call intuitive, plus it uses one more character - a cardinal sin if you are coding in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash of hashes assignment
by Athanasius (Archbishop) on Apr 13, 2013 at 14:14 UTC |