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?? |
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.
In Section
Seekers of Perl Wisdom
|
|