Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Checking whether a $var is a numberby George_Sherston (Vicar) |
on Sep 05, 2001 at 01:37 UTC ( [id://110169]=note: print w/replies, xml ) | Need Help?? |
Yes. That (together with a || $x==1 && substr($x,1,1) ne '1') does exactly what I find myself wanting nine times out of ten. That is, what isNaN does in js. I'd find it useful to have a built in function, and maybe we're going to get one. § George Sherston
In Section
Seekers of Perl Wisdom
|
|