Skip Menu |

This queue is for tickets about the Tie-RangeHash CPAN distribution.

Report information
The Basics
Id: 1887
Status: resolved
Priority: 0/
Queue: Tie-RangeHash

People
Owner: rrwo [...] cpan.org
Requestors: charleshuff [...] decisionresearch.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.40
Fixed in: (no value)



Subject: Certain decimal range lookups fail
The decimal range lookup below behaves unexpectedly. #perl #v5.6.1 MSWin32-x86-multi-thread on WinXP use Tie::RangeHash; # version 0.70 # use numeric mode tie %T, Tie::RangeHash, {Type => Tie::RangeHash::TYPE_NUMBER}; # assign two decimal ranges $T{'0,.499'} = 'A'; $T{'0.500,1.9'} = 'B'; print $T{.6}; # prints 'A'; should print 'B'