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 12:37
Subject:
Re: How do I build a associative array from a dyanamic list
Message ID:
001c01c0c2be$b8cd7020$2531273f@ca.boeing.com
----- Original Message -----
From: "John Stracke" <francis@ecal.com>
To: <libwww@perl.org>
Sent: Wednesday, April 11, 2001 12:04 PM
Subject: Re: How do I build a associative array from a dyanamic list


> "Michael A. Chase" wrote:
>
> > $hash{'a'}{'b'} = "value in b of a";
>
> That should be $hash{'a'}->{'b'}.  A hash cannot contain other hashes, it
can
> only contain scalars (such as references).

That's exactly what $hash{'a'}{'b'} is, the '->' in $hash{'a'}->{'b'},  may
be omitted.



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