Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Heisenberg Uncertainty Hashby ikegami (Patriarch) |
on Apr 26, 2005 at 22:51 UTC ( [id://451795]=note: print w/replies, xml ) | Need Help?? |
You've been bitten by auto-vivification. It means that since $hash{'d'} is undefined and you're asking it to be a hash reference, Perl creates an anonymous hash for you. You probably want
Not as likely, but you might even want
or
However, the equivalent to your code would be
Thanks for reducing the problem to a its minimum form.
In Section
Seekers of Perl Wisdom
|
|