in reply to Seemingly enigmatic data structures
Linda,
In this context using arrays and hashes, the -> operator:
It must be used to access the first data structure level of a reference to an array:
my $ra_staff = \@staff; $ra_staff->[0]...
It must not be used to access the first data structure level of an array:
$staff[0]...
It is optional everywhere else: as shown by lidden above.
Regards,
PN5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Seemingly enigmatic data structures
by tphyahoo (Vicar) on Mar 05, 2005 at 12:16 UTC | |
by merlyn (Sage) on Mar 05, 2005 at 13:55 UTC | |
by tphyahoo (Vicar) on Mar 05, 2005 at 17:39 UTC | |
by Joost (Canon) on Mar 05, 2005 at 18:01 UTC |