develooper Front page | perl.libwww | Postings from April 2001

Re: How do I build a associative array from a dyanamic list

Thread Previous | Thread Next
From:
Michael A. Chase
Date:
April 11, 2001 11:52
Subject:
Re: How do I build a associative array from a dyanamic list
Message ID:
007301c0c2b8$66d092d0$9533273f@ca.boeing.com
$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.
> ********************



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About