in reply to Copying a hash to another hash problem

$framearray->{$frameno}{$drawerno} = $tempno;

Looks like $framearray is a hashref

$framearray{1}{5} = 23

Looks like %framearray is a hash

What do $framearray and %framearray have to do with each other? Nothing.

%newhash = %framearray

Copying HashesofHashes is not that easy, because they work with references, so they'll point to the same values. Have a look at the Storable module and 'dclone'

--
http://fruiture.de
  • Comment on Re: Copying a hash to another hash problem