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

G'day thanos1983,

The code you've posted is not the code you're running!

... and as I'm replying to you, I see you're changing your post without showing any update.

Your first line of output was originally:

The 1, has nondigits

Now you've changed it to:

The 1 is a whole number

Please read: "How do I change/delete my post?".

-- Downvoted, lost interest, moving on, won't be returning.

-- Ken

  • Comment on Re: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
by thanos1983 (Parson) on Jul 11, 2015 at 23:40 UTC

    G'day kcott

    You are right, I updated the code on minor points, while you where trying to assist me. I did when I figure out that I was testing two number 1 and 1.0 that did not make any sense to test.

    Apologies for that that you lost interest. I hope that this will not happen again on my questions.

    Thank you for spending time and trying to assist.

    Seeking for Perl wisdom...on the process of learning...not there...yet!