in reply to hash of hashes of hashes ...
My understanding of your question is:
'365' and '302' are examples of keys in a hash whose hash values are a reference to a hash of hashes.
To retrive the values '365' and '302' you need just use:
Then again, I could be misinterpreting your question!my @hash_refs = keys %{$VAR1};
EXAMPLE
#!/usr/bin/perl -w use strict; my $VAR1 = { '365' => { foo=>1, bar=>2 }, '302' => {} }; my @hash_refs = keys %{$VAR1}; print "My hash refs are: ".join (', ',@hash_refs)."\n"; print "The value of my hash refs are: ".join(', ', values %{$VAR1})."\ +n\n"; my %tmp = %$VAR1; print "'bar' in '365' is: ".$tmp{'365'}->{bar}."\n";
--
Graq
|
|---|