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 |