in reply to Multiple identical keys in a hash.
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Multiple identical keys in a hash.
by ChuckularOne (Prior) on Apr 24, 2000 at 17:33 UTC | |
by ZZamboni (Curate) on Apr 24, 2000 at 18:13 UTC | |
by BBQ (Curate) on Apr 24, 2000 at 20:13 UTC | |
|
RE: Re: Multiple identical keys in a hash.
by ChuckularOne (Prior) on Apr 24, 2000 at 17:46 UTC | |
by zodiac (Beadle) on Apr 25, 2000 at 15:26 UTC |