Re: Hash of Arrays, p. 276
- From: rabbit@xxxxxxxxx (Peter Rabbitson)
- Date: Sat, 28 May 2005 19:13:03 -0500
> 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";
......
.
- References:
- Hash of Arrays, p. 276
- From: Matthew Sacks
- Hash of Arrays, p. 276
- Prev by Date: Re: remove duplicate lines
- Next by Date: please help me to check why this perl script does not work!
- Previous by thread: Hash of Arrays, p. 276
- Next by thread: please help me to check why this perl script does not work!
- Index(es):
Relevant Pages
|