|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: How to determine if something is numeric?by stefp (Vicar) |
| on Jan 31, 2004 at 13:49 UTC ( [id://325568]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
If by numeric, you means a string that represents a natural integer in the decimal numeration system which first digit is not a zero, it happens to be a string $s that is left unchanged by the
operation: $s+0
oops, I read you specif without reading the code. I came with the same solution as you. --
stefp
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||