in reply to Re: Re: Making a new list of hashes from a hashref
in thread Making a new list of hashes from a hashref
In terms of the drawbacks, there have been some reports of core dumps when using Clone on some edge-case structures, although I've forgotten the details (it's certainly not common). Also, Storable provides a hook that lets objects participate in their cloning, so that the copied object can perform some kind of re-initialization or other post-cloning cleanup.
I've also posted a pure-Perl implementation to CPAN as Clone::PP, which is of course slower than either of the above.
And for those times where you don't really care how it's implemented, as long as you get a working deep-clone function, I've posted a generic facade called Clone::Any which will attempt to load Storable, Clone, or an equivalent module and will export the clone function from the first one it finds.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Making a new list of hashes from a hashref
by BrowserUk (Patriarch) on Oct 10, 2003 at 22:54 UTC |