Keep It Simple, Stupid | |
PerlMonks |
Re: How to determine if something is numeric?by stefp (Vicar) |
on Jan 31, 2004 at 18:49 UTC ( [id://325568]=note: print w/replies, xml ) | Need Help?? |
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
|
|