Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Local Copy of a member variable

by jeffa (Bishop)
on Oct 20, 2005 at 17:06 UTC ( #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
Node Status?
node history
Node Type: note [id://501736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2020-02-19 10:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (81 votes). Check out past polls.

    Notices?