in reply to Re: Re: Answer: How to identify a number datatype in a string?
in thread How to identify a number datatype in a string?
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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Answer: How to identify a number datatype in a string?
by parv (Parson) on May 31, 2003 at 07:55 UTC |