"be consistent" | |
PerlMonks |
Re: Not a Numberby robartes (Priest) |
on Oct 18, 2002 at 07:22 UTC ( [id://206235]=note: print w/replies, xml ) | Need Help?? |
You use regexes to check whether something is a valid number. The advantage of this is that you can easily adapt the regexes to whatever your interpretation of a number is. Here's an example out of the Cookbook:
Chapter 2 of the Perl Cookbook provides numerous recipes for dealing with numbers in Perl. It comes highly recommended. CU
In Section
Seekers of Perl Wisdom
|
|