There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> Yours fails for negative numbers
I know it's primitive. But I coded it in about 5 seconds and for some application it might be good enough. > , and for strings with more than one decimal place Not True. It declares anything containing something else than numbers and decimal ponit(s) as non-numeric. For a real application I'd use something like Abigail's Regexp::Common pelagic ------------------------------------- I can resist anything but temptation. In reply to Re^3: How to check Inputs if Numeric
by pelagic
|
|