Unicode::UCD.pm: Fix bugs in undocumented binary search function
authorKarl Williamson <public@khwilliamson.com>
Mon, 19 Nov 2012 17:06:41 +0000 (10:06 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 20 Nov 2012 00:13:01 +0000 (17:13 -0700)
commitde13b7b164bf1b8c269a3d0d53476a11d79ebf7c
tree7ce4b1e137c4539d050b8e0e145b63428fe9515b
parent900c17f9f5aa8369087d8920d7c10c5234f13ea0
Unicode::UCD.pm: Fix bugs in undocumented binary search function

This function is undocumented mostly because I was afraid it would be
buggy, as many such implementations are.  See:
http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html
(I recommend reading that link; it is instructive, entertaining, and
humbling.)

And it turns out I was right that I was wrong (in my original code).  A
test was inexplicably reversed, and another missing.
lib/Unicode/UCD.pm