Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Local Copy of a member variable

by jeffa (Bishop)
on Oct 20, 2005 at 17:06 UTC ( [id://501736]=note: print w/replies, xml ) Need Help??


in reply to Local Copy of a member variable

Try this instead

my $atlas_copy = { %$atlas };
UPDATE: but a deep copy is the better choice here. I was assuming you were dealing with a simple hash structure and i failed to notice that you were copying to hash, not a hash ref. Nothing to see here ... move along. bad jeffa :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found