PerlingTheUK has asked for the wisdom of the Perl Monks concerning the following question:
I am looking for a decent datastructure to do this that will be less heavyweight than a object but more efficient than storing the table in two separate hashes.$a = $a{ $b }; $b = $b{ $a };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bi-Directional Hash Lookup
by Skeeve (Parson) on Oct 11, 2005 at 11:42 UTC | |
by PerlingTheUK (Hermit) on Oct 11, 2005 at 12:06 UTC | |
by pajout (Curate) on Oct 11, 2005 at 12:57 UTC | |
|
Re: Bi-Directional Hash Lookup
by Moron (Curate) on Oct 11, 2005 at 11:38 UTC | |
|
Re: Bi-Directional Hash Lookup
by thor (Priest) on Oct 11, 2005 at 11:56 UTC | |
by blazar (Canon) on Oct 11, 2005 at 12:14 UTC | |
by thor (Priest) on Oct 11, 2005 at 14:48 UTC | |
|
Re: Bi-Directional Hash Lookup
by blazar (Canon) on Oct 11, 2005 at 11:53 UTC | |
|
Re: Bi-Directional Hash Lookup
by radiantmatrix (Parson) on Oct 11, 2005 at 17:22 UTC | |
|
Re: Bi-Directional Hash Lookup
by TedPride (Priest) on Oct 11, 2005 at 18:34 UTC |