Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-0.7
-
None
Description
Rafi found the code:
sub isnum ($)
{ return 0 if $_[0] eq ''; $_[0] ^ $_[0] ? 0 : 1 }which can differentiate strings from integers. An additional piece can check for a . in a numeric value to differentiate integers from floating point values.