in reply to Deepcopy of complex structures.
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Deepcopy of complex structures.
by BrowserUk (Patriarch) on Jan 21, 2003 at 01:10 UTC |