c0bra has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to do fuzzy lookups on keys in a hash. Assume that the hash is lexically sorted.
Is there any way to do it without cycling through the values? I know Tie::Hash::Regex does something similar but it has to grep through the entire hash. Is there any way to maybe use the B-Tree method and find closer matches until you get what you want?
I really have no idea.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fuzzy hash key lookups
by Dog and Pony (Priest) on Aug 01, 2002 at 15:17 UTC | |
|
Re: Fuzzy hash key lookups
by Abigail-II (Bishop) on Aug 01, 2002 at 15:21 UTC | |
by c0bra (Acolyte) on Aug 01, 2002 at 15:29 UTC | |
by Abigail-II (Bishop) on Aug 01, 2002 at 16:50 UTC | |
|
Re: Fuzzy hash key lookups
by sauoq (Abbot) on Aug 01, 2002 at 18:22 UTC |