k on to the array "@$children{$v}".
The idiom "@$" refers to the array reference variable named immediately
after it, so as to dereference that variable and use it where one would
normally find an array variable.
e.g.
push(@$arrayRef, 15); # equivalent to push(@array, 15
href = $children;
> my %hash = %$hashref;
> @hash{($v)};
I'll study that one after I TOTALLY understand my original problem.
Thank you for another eye opener & head scratcher.
--
Bill Gradwohl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
adn't gotten to that chapter yet, but looking at the output I can see
how handy it is.
Thanks
--
Bill Gradwohl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ymous array to be created via
autovivification, and the array reference points to that array.
6) Therefore, for example, $children{Adam} is linked to an anonymous
array via the reference stored as the value for that key.
7) The push then pushes $c on to that anonymous array.
--
Bill Gradwohl
-
equired_items("Mr. Howell", qw(Money preserver sunscreen));
How do I tell Perl to give me a reference to an array in the last 2
statements? There's got to be a way to pass a reference without having
to explicitly name a variable. Right?
Thank You
--
Bill Gradwohl
--
To uns