in reply to Re: How can I test for the representation of an integer?
in thread How can I test for the representation of an integer?

Thanks - that's probably the most accessible way I've seen.
Feels like it should be in Scalar::Util.
  • Comment on Re^2: How can I test for the representation of an integer?

Replies are listed 'Best First'.
Re^3: How can I test for the representation of an integer?
by syphilis (Archbishop) on Apr 26, 2016 at 01:06 UTC
    Feels like it should be in Scalar::Util

    I don't think I would trust Scalar::Util to not fiddle about with the wrapping.
    For example, Scalar::Util's looks_like_number() returns true for a Math::BigInt object, even though the looks_like_number() XS function would return false.

    Cheers,
    Rob