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:
John Stracke
Date:
April 11, 2001 11:56
Subject:
Re: How do I build a associative array from a dyanamic list
Message ID:
3AD4AAA6.6CE840B4@ecal.com
"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).

--
/===============================================================\
|John Stracke    | http://www.ecal.com |My opinions are my own. |
|Chief Scientist |==============================================|
|eCal Corp.      |*BOOM* "Thank you, Beaker. Now we know that is|
|francis@ecal.com|definitely too much gunpowder." -- Dr. Bunsen |
|                |Honeydew                                      |
\===============================================================/




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