Do you know where your variables are? | |
PerlMonks |
Re: Re: Checking whether a $var is a numberby dga (Hermit) |
on Sep 05, 2001 at 22:59 UTC ( [id://110391]=note: print w/replies, xml ) | Need Help?? |
I think you have a typo in your substr which should be
Otherwise the case $x=0; falls into the not a number part of the if.
In Section
Seekers of Perl Wisdom
|
|