On Jul 5, Bob Mangold said:
>print ${${$hashREF}{'foo'}}[1];
I posted earlier this week that
$$ref[$idx] (and ${$ref}[$idx] too)
and
$ref->[$idx]
are the same. So...
$$hashref{foo}
is
$hashref->{foo}
and then
${ $hashref->{foo} }[1]
is
$hashref->{foo}->[1]
which can be s
On Thu, 5 Jul 2001, Bob Mangold wrote:
> if I have a hash that contains array refs as its values and I create a
> reference for it, what are the different ways that i can access the information
> in the array?
>
> for example.
>
> my %hash;
> my @array = ('red','white','blue');
> $hash{'foo'} = \
if I have a hash that contains array refs as its values and I create a
reference for it, what are the different ways that i can access the information
in the array?
for example.
my %hash;
my @array = ('red','white','blue');
$hash{'foo'} = \@array;
my $hashREF = \%hash;
print ${${$hashREF}{'foo'}