Re: [PBML] Test for Number or String
- "Mike Dillinger" <miked@...> queried:
: Is there an easier way to test for numeric stuff?
: I know C has isnum or isdigit or something like that,
: and it would be cool if PERL had a function like that
: rather than doing a regexp test. I'm also open to
: suggestions on how to test for numeric responses
: that you might have.
my $test = 7000_000_003;
print isdigit( $test ) ? "numeric\n" : "string\n";
Charles K. Clarkson
Head Bottle Washer,
Clarkson Energy Homes, Inc.
CJ Web Work - Domains for Real Estate Investors.
E Pluribus Unum -- One from many.