$other_hash{key} = ''; $hash{other} = \%other_hash; $hash{other}->{key} = '1'; # ok $tmp = $hash{other}; $$tmp{key} = '2'; # use it like this # $$hash{other}{key} = '2'; # but not like this ${$hash{other}}{key} = '3'; # this is ok $hash{other}{key} = '3'; # this too, -> unneeded after { +}
In reply to Re: How do I make a hash of hashes?
by Doraemon
in thread How do I make a hash of hashes?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |