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

Re^5: What is the correct definition of False and Null in Perl?

by LanX (Saint)
on Oct 08, 2011 at 18:52 UTC ( [id://930382]=note: print w/replies, xml ) Need Help??


in reply to Re^4: What is the correct definition of False and Null in Perl?
in thread What is the correct definition of False and Null in Perl?

> 0.0 is not quite the same as 0E0.

I was talking about strings not literal numbers:

DB<105> p !! "0.0" 1 DB<106> p !! "0E0" 1 DB<107> p !! 0E0 DB<108> p !! 0.0 DB<109> p 1 + "0E0" 1 DB<110> p 1 + "0.0" 1

and by the way IMHO thats all hardly necessary.

Can't think of a use case which can't be solved by calling a function in list context.

Cheers Rolf

Replies are listed 'Best First'.
Re^6: What is the correct definition of False and Null in Perl?
by Marshall (Canon) on Oct 27, 2011 at 02:24 UTC
    Well that may be true. But the issue here is what did the other guys do? When we use an interface, we have to deal with it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-19 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found