my %newhash = %{ dclone \%hash }; #### foreach (values %hash) { my %newcookie = %{ dclone $_ }; # more code here }