http://qs321.pair.com?node_id=245432

UnderMine has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I would like some advice as to whether anyone has experience of Clone's clone Vs Storable's dclone.

A module that I have recently been using Hash::Merge uses clone in order to do a level at a time comparison of the keys used in hashs. But this has shown up a few Bugs in the underlying module Clone (including causing a Seg-fault).

I have posted a fix for Hash::Merge that by-passes the Seg fault issue in clone but does not address the Uni-code support issue.

My question is should Hash::Merge be using clone or dclone. dclone does deep cloning but is part of core perl but is slower than clone in the context of Hash::Merge which only requires single depth transversal cloning.

All thoughts welcome
UnderMine