in reply to Bi-Directional Hash Lookup
Of course, you are still storing everything twice, but in order to be able to lookup on either value, you'll need something like this.#assume that %hash is already initialized %hash = (%hash, reverse %hash);
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bi-Directional Hash Lookup
by blazar (Canon) on Oct 11, 2005 at 12:14 UTC | |
by thor (Priest) on Oct 11, 2005 at 14:48 UTC |