> perl hashofhash.pl "my" variable %newfile_attachments masks earlier declaration in same scope at hashofhash.pl line 17. $VAR1 = '103496-1'; $VAR2 = { 'FD' => '0010', 'COMP' => '1234', 'CLVD' => '5678', 'File' => 'text.txt' }; Can't use string ("103496-1") as a HASH ref while "strict refs" in use at hashofhash.pl line 19.