Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: How to check Inputs if Numeric

by Anonymous Monk
on Mar 16, 2014 at 11:52 UTC ( [id://1078510]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to check Inputs if Numeric
in thread How to check Inputs if Numeric

just a quick (final) note : ($nr+0 eq $nr ) is not perfect for checking on numbers in general, but it is a very good check for integer numbers.

It avoids perl complaining about casting as some other methods would and is pretty easy on resources

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 05:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found