in reply to Cloning shared hashref

What you are looking for is called a deep copy.   (Or, “deep cloning.”)

e.g. clone in Storable.

Hashes often contain references to things, and changing any one of the references changes the (one) thing to which it refers...

“Holy EQUIVALENCE, Captain Fortran!”

Replies are listed 'Best First'.
Re^2: Cloning shared hashref
by BrowserUk (Patriarch) on Jan 20, 2011 at 18:31 UTC
    1. If you'd bothered to look, you'd have realised that the sole purpose of Clone::clone() is to perform deep copies.
    2. If you'd looked at Storable, you'd have discovered that it doesn't export a routine called clone().
    3. And if you bothered to try dclone(), you'd have found that it produces exactly the same error.