in reply to Re: The Bad, the Ugly, and the Good of autovivification
in thread The Bad, the Ugly, and the Good of autovivification
Sure, you can unclamp the hash whenever you insert a new key, but then it might be easier to write your exist test as:
$exists = exists $hash{key1} && exists $hash{key1}{key2};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The Bad, the Ugly, and the Good of autovivification
by 5mi11er (Deacon) on Apr 09, 2005 at 05:44 UTC |