in reply to Re: Re: Re: Link a hash and an array
in thread Link a hash and an array
@Stuff{@{$Types{$_[0]}}} = @_;
This syntax is interesting. I have now copied it without fully understanding it. This part:
@{$Types{$_[0]}}
Seems to indicate, "Pull me the contents of this array element, and return it to me as an array". Am I correct?
The outer curly braces intrige me. I am sure that I read somewhere that the syntax should be:
@$Types{$_[0]}
Which I tried with little success. The braced version does work, but I hate to do things by magic. What do they mean?
Again, Thank you,
Skip
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Link a hash and an array
by QM (Parson) on Mar 12, 2004 at 16:35 UTC | |
by SkipHuffman (Monk) on Mar 12, 2004 at 17:52 UTC |