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,my $aref = []; $aref->[0] = $aref; deepcopy($aref);
In reply to Re: Deepcopy of complex structures.
by ihb
in thread Deepcopy of complex structures.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |