Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Deepcopy of complex structures.

by Aristotle (Chancellor)
on Jan 22, 2003 at 14:05 UTC ( [id://229012]=note: print w/replies, xml ) Need Help??


in reply to Deepcopy of complex structures.

I will chime in and say I don't think deep copying is the best approach here. Use a global hash to store off-limits areas instead; you can localize individual keys of a hash as you descend, so Perl will do the backtracking for you naturally. This solution will most likely be much more efficient in terms of both time and space.

Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-19 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found