in reply to Re: Answer: How to identify a number datatype in a string?
in thread How to identify a number datatype in a string?
Add the following after if(@){}, and you will see...
else { print "number: ", $test , "\n"; }
...Apparently, $test is assigned zero (perl 5.8.0) when $number is not a number. Ergo, no errors in eval, no print.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Answer: How to identify a number datatype in a string?
by hossman (Prior) on May 30, 2003 at 22:19 UTC | |
by parv (Parson) on May 31, 2003 at 07:55 UTC |