Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Checking whether a $var is a numberby wog (Curate) |
on Sep 05, 2001 at 00:15 UTC ( [id://110146]=note: print w/replies, xml ) | Need Help?? |
Unfortunately perl does not have any built-in functions to
do just this.
One way you could check it is by seeing if perl warns
"... is not numeric ..." when you try to do something
with a value:
In Section
Seekers of Perl Wisdom
|
|