What does this line of code say?

2006-01-11 Thread Bill Gradwohl
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

Re: What does this line of code say?

2006-01-11 Thread Bill Gradwohl
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>

Re: What does this line of code say?

2006-01-11 Thread Bill Gradwohl
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>

Re: What does this line of code say?

2006-01-11 Thread Bill Gradwohl
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 -

How to take a reference "in line"

2006-01-16 Thread 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