in reply to Re: Hash of hashes syntax
in thread Hash of hashes syntax
Therefore, to create a multi tiered data structure, you need to put either an annonymous (hash|array), or a reference to a (hash|array).
This may be a bit pedantic of me, but there's no sense in confusing the issue.
You can't put an anonymous array (or an anonymous hash) into another structure. References are required in order to build nested data structures. It doesn't matter whether a reference refers to a named thingie or an anonymous one.
This ['anon', 'array'] is not an "anonymous array." It is a reference to an anonymous array. Similary with this reference to an {anonymous => 'hash'}. It is best to understand that these constructs actually are references and to avoid useless distinctions between them and other references.
-sauoq "My two cents aren't worth a dime.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hash of hashes syntax
by thor (Priest) on Mar 20, 2003 at 06:00 UTC | |
by sauoq (Abbot) on Mar 20, 2003 at 10:12 UTC | |
|