perl5
perl5 copied to clipboard
fix sv_numeq and add other SV numeric comparison APIs
As discussed in #23918 this adds APIs corresponding to the other perl numeric comparison operators.
Separate APIs for each comparison a provided as each calls the appropriate overload for that comparison.
This also fixes a bug in sv_numeq() which didn't correctly handle the case where the operator itself isn't overloaded, but conversion to a number is, and that conversion returns a large integer not representable as a NV.
- This set of changes requires a perldelta entry, and it is included.