February 2012
Intermediate to advanced
1184 pages
37h 17m
English
You can create a hash of anonymous hashes as follows:
%HoH = (
flintstones => {
husband => "fred",
pal => "barney",
},
jetsons => {
husband => "george",
wife => "jane",
"his boy" => "elroy", # Key quotes needed.
},
simpsons => {
husband => "homer",
wife => "marge",
kid => "bart",
},
);To add another anonymous hash to %HoH, you can simply say:
$HoH{ mash } = {
captain => "pierce",
major => "burns",
corporal => "radar",
};Read now
Unlock full access