Subject: | Feature request: looks_like_int, looks_like_float, look_like_real |
Hi,
Functions more specialized than looks_like_number would be useful in Scalar::Util:
- looks_like_int
- looks_like_float
- looks_like_real
SHARYANTO had an implementation at https://metacpan.org/source/SHARYANTO/SHARYANTO-Utils-0.70/lib/SHARYANTO/Scalar/Util.pm (the module has since been removed from CPAN) but it was using looks_like_number internals (see RT#94806). For details: https://rt.cpan.org/Ticket/Display.html?id=94805
Its test suite may still be useful...
--
Olivier Mengué - http://perlresume.org/DOLMEN