We don't bite newbies here... much | |
PerlMonks |
Re^2: The Bad, the Ugly, and the Good of autovivificationby Anonymous Monk |
on Apr 08, 2005 at 16:18 UTC ( [id://446062]=note: print w/replies, xml ) | Need Help?? |
Yeah, unfortunally, for algorithms that use 'exists', clamping hashes doesn't make sense. Either the key is known to be there (so, no need for exist), or its existance is volotile, which means that clamping hash prevent the keys from being inserted.
Sure, you can unclamp the hash whenever you insert a new key, but then it might be easier to write your exist test as:
In Section
Meditations
|
|