$hash{$id} = (1,2,3);
my @temp = (1,2,3); $hash{$id} = @temp;
Now, when accessing a value in an array in a hash, is this correct:
@{$hash{$id}}[0]
Or is this:
${$hash{$id}}[0]
Thanks.
In reply to Regarding Hashes of Arrays by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |