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
In reply to Re: Seemingly enigmatic data structures
by Prior Nacre V
in thread Seemingly enigmatic data structures
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |