Subject: | Incorrect result when comparing with NaN |
The following SHOULD NOT give a warning about an uninitialized value,
however it SHOULD return false, since comparing a NaN to anything (even
another NaN) should return false:
$ perl -MMath::BigInt -wle 'print Math::BigInt->bnan() == 2'
Use of uninitialized value in numeric eq (==) at -e line 1.
1
The same happens with Math::BigFloat.