$A = \%a; creates a reference to the hash %a. References are akin to c pointers, but I'd recommend the tutorials and super search for more.
@$A{keys %b} = values %b; sets the list of (keys %b) equal to the list of (values %b) as hash elements of $A, which is a reference to %a.
You may also be interested in the PLEAC - Merging Hashes codes.
HTH
In reply to Re: Hash merging!
by eibwen
in thread Hash merging!
by jerry.hone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |