in reply to Hash value, containing a reference to some value of hash, not the intended behaviour.
With something like this:my %newhash = %hashcopy;
We could use thaw and freeze, but a simpler interface is provided in dclone which carries out both operations. There is also a Clone module on CPAN.use Storable qw(dclone); my %newhash = %{dclone(%hashcopy)};
|
|---|