Don't ask to ask, just ask | |
PerlMonks |
Re: Nested (ARRAY|HASH)by Zaxo (Archbishop) |
on Oct 30, 2007 at 09:04 UTC ( [id://647988]=note: print w/replies, xml ) | Need Help?? |
Bart is completely correct, but there is an organizing principle he didn't mention. The values in a hash must be scalars. To make a hash of arrays, the array values should have square braces to produce a reference. To make a hash of hashes, curlies. Each case is based on the top hash value being a scalar. After Compline,
In Section
Seekers of Perl Wisdom
|
|