Re: referncing hashes of array references

2001-07-05 Thread Jeff 'japhy' Pinyan
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

Re: referncing hashes of array references

2001-07-05 Thread Brett W. McCoy
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'} = \

referncing hashes of array references

2001-07-05 Thread Bob Mangold
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'}