The stupid question is the question not asked | |
PerlMonks |
Re: Valid Numbers or decimalsby Nevtlathiel (Friar) |
on May 06, 2005 at 10:49 UTC ( [id://454643]=note: print w/replies, xml ) | Need Help?? |
Just use a regular expression to check that your variable only contains a decimal place (\. - you need to escape it in the regular expression) and \d (digits 0-9). :)
----------
My cow-orkers were talking in punctuation the other day. What disturbed me most was that I understood it.
In Section
Seekers of Perl Wisdom
|
|