You can't have map returning nested hashes assigned to a top-level ha +sh, otherwise entries from different lines would collide (2 x Sidney, + 2 x Canberra) my %hash = map { entry1 => { entry2 => 1} } <> # collisions of entry1
In reply to Re^2: Possible for Map to create Hash of Hash?
by konnjuta
in thread Possible for Map to create Hash of Hash?
by konnjuta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |