Perl: the Markov chain saw | |
PerlMonks |
Re: Deepcopy of complex structures.by ihb (Deacon) |
on Jan 21, 2003 at 01:01 UTC ( [id://228549]=note: print w/replies, xml ) | Need Help?? |
What's wrong with Data::Dumper? Data::Dumper even has switches for the explicit reason of eval()ing and deep-copying. The biggest flaw in your routine, as far as I can see, is that it doesn't handle circular references. It'll recurse to death upon Hope I've helped, ihb
In Section
Seekers of Perl Wisdom
|
|