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

How do I make a deep copy of a hash (or other data structure)?

by Athanasius (Archbishop)
on Jan 12, 2019 at 08:10 UTC ( [id://1228416]=perlquestion: print w/replies, xml ) Need Help??

Athanasius has asked for the wisdom of the Perl Monks concerning the following question: (hashes)

How do I make a deep copy of a hash (or other data structure)?

Originally posted as a Categorized Question.

  • Comment on How do I make a deep copy of a hash (or other data structure)?

Replies are listed 'Best First'.
Re: How do I make a deep copy of a hash (or other data structure)?
by haukex (Archbishop) on Jan 12, 2019 at 08:24 UTC
    There's also the module Clone.
Re: How do I make a deep copy of a hash (or other data structure)?
by Athanasius (Archbishop) on Jan 12, 2019 at 08:15 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2025-12-17 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (98 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.