Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Copy of an anonymous hash?

by DrHyde (Prior)
on Apr 26, 2005 at 09:37 UTC ( [id://451472]=note: print w/replies, xml ) Need Help??


in reply to Re: Copy of an anonymous hash?
in thread Copy of an anonymous hash?

That works, but only if the hash contains simple scalars. If it contains any references, the reference will be copied, so you'll have two references to the same thingy. If that matters, I recommend using the Storable module and its dclone function.

This won't solve the problem of references to items outside the structure, but that's not usually a problem that needs solving anyway.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-03-29 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found