Just off the top of my head: {'pierce'} by itself is not a hash, is it? A hash is a set of key/value pairs, so a single value cannot be a hash.
> -----Original Message----- > From: Mark Hanson [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 03, 2001 4:42 PM > To: [EMAIL PROTECTED] > Subject: add hash to hash of hash > > > Hi, > > Still more hash questions: > > using the example in chapter 9 of Programming Perl: > > %HoH = ( > flintstones => { > husband => "fred", > pal => "barney", > }, > ); > > how can dynamically add another hash to %HoH? In Programming > Perl, they have a hard coded example: > > $HoH{mash} = { > captain => "pierce", > ... > }; > > I've tried: > $HoH{'mash'}{'captain'} = {'pierce'}; > and assorted variations... > > Pls help! Thanks! > /Mark > > > This message may contain information which is private, privileged or confidential and is intended solely for the use of the individual or entity named in the message. If you are not the intended recipient of this message, please notify the sender thereof and destroy / delete the message. Neither the sender nor Sappi Limited (including its subsidiaries and associated companies) shall incur any liability resulting directly or indirectly from accessing any of the attached files which may contain a virus or the like. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]