Acctually, $test is assigned $number regardless of what $number is ... if you do any mathematicly operations on a scalar which is "not a number" then that scalar is evaluated as "0" (and a warning is generated).
Which was basicly my point ... the whole premese of this test is flawed. (uless you set up a signal handler for warnings, which causes a "die" to be thrown)
In reply to Re: Re: Re: Answer: How to identify a number datatype in a string?
by hossman
in thread How to identify a number datatype in a string?
by BBQ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |