Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: The best "true zero" is...

by mce (Curate)
on Jun 09, 2005 at 09:08 UTC ( #465027=note: print w/replies, xml ) Need Help??


in reply to Re^2: The best "true zero" is...
in thread The best "true zero" is...

true, but also not true :-)

Many functions -like the execute function in DBI- return 0E0 when they want to return a result that is ment to be zero but is 'boolean' true in tests

So, indeed it is not general perl, but it is common to use 0E0 as "zero but true".

Cheers,


---------------------------
Dr. Mark Ceulemans
Senior Consultant
BMC, Belgium

Replies are listed 'Best First'.
Re^4: The best "true zero" is...
by ambrus (Abbot) on Jun 09, 2005 at 09:13 UTC

    That's right, but the core perl uses only "0 but true", so "0E0" is not Larry's.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://465027]
help
Chatterbox?
[talexb]: Does the mis-spelled title "SSL Apgrade failed" bug anyone else? Wish the authour would fix it. This is the node I'm talking about.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-07-25 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (376 votes). Check out past polls.