Would that work? I used defined in this case because the value might be null, and that's not really what you're testing for, is it? You might still have the two levels assigned even if they do have a null value.if (defined $hash{$key}{$key}) { # do your thing }
In reply to Re: Multiple identical keys in a hash.
by BBQ
in thread Multiple identical keys in a hash.
by ChuckularOne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |