use Data::Dumper; my %hash; $hash{tree} = 4; $hash{tree}->{apple} = 6; print Dumper \%hash;
Run that. When you understand why "4" does not appear in the output, then you will find enlightenment.
Update: d'oh! "6" doesn't appear in the output. In my defence, the above code was typed on a mobile device where I didn't have a copy of Perl to test it. A flimsy defence, I admit.
In reply to Re: (another) HoH question
by tobyink
in thread (another) HoH question
by zuma53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |