in reply to Do I have to explicitly tell keys() that the hash in my hash of hashes is a hash?
So theres the simple way and the complicated way...use strict; use warnings; my $hash={a=>{b=>1},c=>{d=>1}}; foreach my $key (keys %$hash) { print "$key\n"; foreach my $subkey (keys %{$hash->{$key}}) { print "\t$subkey\n"; } }
HTH
Yves / DeMerphq
--
This space for rent.
|
|---|