in reply to Re: Is A Number
in thread Is A Number
> If you are just looking for an elegant, ready-made solution then Scalar::Util::looks_like_number fits the bill:
Even better ... it's core.
So no need to install anything.
D:\tmp\pm>corelist Scalar::Util Data for 2021-01-23 Scalar::Util was first released with perl v5.7.3 D:\tmp\pm>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In Section
Seekers of Perl Wisdom