Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Checking whether a $var is a number

by dga (Hermit)
on Sep 05, 2001 at 22:59 UTC ( [id://110391]=note: print w/replies, xml ) Need Help??


in reply to Re: Checking whether a $var is a number
in thread Checking whether a $var is a number

I think you have a typo in your substr which should be

substr($x,0,1);

Otherwise the case $x=0; falls into the not a number part of the if.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://110391]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2024-04-19 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found