> Specifically
>  # append new members to an existing family
>  push @{ $HoL{"flintstones"} }, "wilma", "betty";
> 
> I don't understand why the construct @{  xxxxx } is written that way.

Step by step, what it does is:
1. Dereference the List in the Hash with key "flinstones"  ---> @{$array_ref} 
is dereferncing an array $array_ref
2. Thus you have an array of that hash (i.e. flinstones as key).
3. Finally you push "wilma" and "betty" into that array



Hope it's clear.

---
Regards,
Edward WIJAYA
SINGAPORE


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to