in reply to Copying a hash to another hash problem
Or use an actual hash instead of a reference in your original assignment statements...%newhash = %{$framearray};
Also, you should be aware that there is another implied arrow operator between your two hash subscripts, meaning that last assignment statement could be rewritten as...my %framearray; $framearray{$frameno}{$drawerno} = $tempno; %newhash = %framearray;
This is unavoidable as multidimensional hashes are implemented as a hash of hash refs.$framearray{$frameno}->{$drawerno} = $tempno;
|
|---|