Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by blakem (Monsignor)
on Sep 06, 2001 at 02:21 UTC ( [id://110439]=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

Interesting, it looks like this works, but they return 'inf' and 'nan' instead of the longer capitalized versions above.
% perl -le "print 1 + 'NaN'" nan % perl -le "print 1 + 'Infinity'" inf

-Blake

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-18 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found