Re: Hash of Arrays, p. 276



> Please look at the definition and initialization of the hash. It is a hash of array references, isn't it? Why does
> $HoA{"flintstone"}[0] work, why is not it: $HoA{"flintstone"}->[0] ????

perldoc perlref
Section: Using References
Paragraph 3

.....
$array[$x]->{"foo"}->[0] = "January";
......
One more thing here. The arrow is optional between brackets
subscripts, so you can shrink the above down to
$array[$x]{"foo"}[0] = "January";
......

.



Relevant Pages