in reply to Insert a new key (that is a hash) to a hash
my %hashList = (); ... $hashList{$count} = \%secondHash; ... my $hashtemp = $hashList{$count}; while ( my ($key, $value) = each ( %$hashtemp ) ) { ... } [download]