The stupid question is the question not asked | |
PerlMonks |
Re: arrays from arraysby fruiture (Curate) |
on Mar 07, 2003 at 17:15 UTC ( [id://241189]=note: print w/replies, xml ) | Need Help?? |
So you say you have multiple values for certain keys.
This directly translates to Perl:
We call this a HoA, a hash of arrays as every value is another (anonymous) array-reference. The creation of such a data structure is very easy with Perl as it has magic autovivification:
That's it. Perl is great. update: see perlref and perldata of course. --http://fruiture.de
In Section
Seekers of Perl Wisdom
|
|