This fixes the problem: ...
Actually, in this particular case, you could also just not initialize the array, i.e. simply say
my @hashes; $hashes[$_]{$_} = 1 foreach (0 .. 9);
and let autovivification do the job.
In reply to Re: Array of hashes misbehaving?
by Eliya
in thread Array of hashes misbehaving?
by Dr. Mu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |