Re: How do I build a associative array from a dyanamic list
Michael A. Chase (mchase@ix.netcom.com)
Wed, 11 Apr 2001 11:51:03 -0700
$hash{'a'}{'b'} = "value in b of a";
perldoc perlref
Storing the result in a database is another issue, which is addressed by the
snippet you quoted.
--
Mac :})
** I normally forward private database questions to the DBI mail lists. **
Give a hobbit a fish and he'll eat fish for a day.
Give a hobbit a ring and he'll eat fish for an age.
----- Original Message -----
From: "Ben Goswami" <ben.goswami@infospace.com>
To: <libwww@perl.org>
Sent: Wednesday, April 11, 2001 11:28 AM
Subject: FW: How do I build a associative array from a dyanamic list
> How can I create a associative array from an unknown list of entities. As
> we don't have an equivalent of 'add' or 'push' function for the
associative
> array.
> for example: I'm trying to parse an xml file and create an nested
> associative array. The number of 'items' element in the source data may be
> varying.
>
>
> I've attached the xml:
>
> the only in the docs I see about this is this:
> ***************************
> How can I store a multidimensional array in a DBM file?
> Either stringify the structure yourself (no fun), or else get the MLDBM
> (which uses Data::Dumper) module from CPAN and layer it on top of either
> DB_File or GDBM_File.
> ********************