Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Truth and Falsehood

by tobyink (Canon)
on Dec 17, 2019 at 22:13 UTC ( [id://11110306]=note: print w/replies, xml ) Need Help??


in reply to Truth and Falsehood

You might want to add that for dualvars, it is the stringy part of the value which is tested for truthfulness.

use Scalar::Util 'dualvar'; dualvar(1, "0"); # false dualvar(0, "1"); # true

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2025-12-13 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (93 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.