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 Laurent_R,
Well I assumed that as soon it will match the if condition it will break. and this is the reason that I should modify it.
Regarding the array, I do not want the array to contain strings I want the array to contain numbers. This is why I define it like this my @numbers = (1, 1.0, 123.1, 0.1);. I verified the syntax from the tutorial Arrays: A Tutorial/Reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
by Laurent_R (Canon) on Jul 12, 2015 at 12:08 UTC | |
by thanos1983 (Parson) on Jul 12, 2015 at 13:49 UTC |