It all depends on what you mean by "equivalent". To copy the contents of the array, you would do
$hash{'two'} = [ @{$hash{'one'}} ];To make sure that they both reference the same array, just
$hash{'two'} = $hash{'one'};I assume that you mean the former though.
Update: /me suddenly experiences a strange sense of deja vu and decides he needs to type faster or notice newer nodes sooner or both :-)
In reply to Re: one hash value (array) into another
by duff
in thread one hash value (array) into another
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |