in reply to Hash entries starting with a given string.

DB_File's DB_BTREE provides partial match on keys of an ordered binary tree. Maybe you can stuff your hash into that. I used that in IP prefixes: match IP against "best" network.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re: Hash entries starting with a given string.