perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

fix sv_numeq and add other SV numeric comparison APIs

Open tonycoz opened this issue 2 weeks ago • 2 comments

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.

tonycoz avatar Nov 27 '25 00:11 tonycoz