Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?

by thanos1983 (Parson)
on Jul 12, 2015 at 00:08 UTC ( [id://1134339]=note: print w/replies, xml ) Need Help??


in reply to Re: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
in thread [SOLVED] How do I determine with a regular expression whether a scalar is a number/whole/integer/float?

Hello BrowserUk,

You are right, I modified the question while you where trying to answer it. I am sorry for that. I noticed that I was testing two number 1 and 1.0 which will give the exact output.

That is why I modified the code again. I have updated the testing code and also the output.

Thank you for your time and effort reading and assisting me with my question.

Seeking for Perl wisdom...on the process of learning...not there...yet!
  • Comment on Re^2: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
  • Select or Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found