in reply to How to compare inner keys from two Hashes
Now, each of those values is, itself, a hash reference, and you can get the keys of any reference by doing keys %{$reference} (or similarly with values). In fact, you can operate on %{$reference} exactly like you would on any other hash. (The braces are optional when the reference is a simple scalar variable.)
If you want to get all the "logn" type keys out of your %hash1, you could do it something like this:
and similarly for %hash2. I don't really understand your explanation of your goal, so I have to bug out here, but I hope this helps.my @h1_inners = (); for my $ref (values %hash1) { push(@h1_inners, keys %$ref); }
|
|---|