Is there something like a heap or std::map that I can use to maintain elements in sorted order? (I don't have the ability to readily install CPAN, but I saw POSIX::bsearch and Heap.)
I guess perl does not have a lower_bound (or bsearch) function as standard part of the language?
Is there a technique to do range-like lookup with hashes other than binning?