So when you attempt to recover keys %{$hash->{$key1}} you're attempting to treat %hash as a reference. Don't you mean to try keys %{$hash{$key1}}?
Update: actually I tried a little script of my own and when I added keys %{$hash->{$key1}} I got a compiler error saying that I hadn't defined $hash. Try adding use strict to your script and see if the compiler helps you solve the problem..
In reply to Re: undef(%hash) not doing what I expect for HoH
by monarch
in thread undef(%hash) not doing what I expect for HoH
by doowah2004
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |