in reply to Print the key of the first hash table in hash of hashes

You are trying to print a hash ref there. In the nested hash structure $samplehash{$key} will return a hash ref not a scalar value. Change the print to print "\n $key = ". Dumper($samplehash{$key});, you will understand what I am talking about.
  • Comment on Re: Print the key of the first hash table in hash of hashes