Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Is A Number

by LanX (Saint)
on Dec 17, 2021 at 15:41 UTC ( [id://11139688]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139688]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-23 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found