Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: one hash value (array) into another

by Limbic~Region (Chancellor)
on Jan 06, 2004 at 18:26 UTC ( #319193=note: print w/replies, xml ) Need Help??


in reply to one hash value (array) into another

c,
It depends on what you mean by "equivalents".

If you mean having an initial copy that can diverge

$hash{two} = [ @{$hash{one}} ];
If you mean you want both keys to be referents to the same anonymous array
$hash{two} = $hash{one};
Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://319193]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-08-05 09:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (44 votes). Check out past polls.

    Notices?