Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: conditional print. Is correct to use it?

by BillKSmith (Monsignor)
on Oct 27, 2020 at 15:49 UTC ( [id://11123213]=note: print w/replies, xml ) Need Help??


in reply to Re: conditional print. Is correct to use it?
in thread conditional print. Is correct to use it?

Your complete list of false values is one of those "well known" facts that I cannot find the documentation for. The list does appear in the second paragraph of the documentation of the function defined, but it does not claim to be Perl's definition of 'false'. Can you suggest a better reference.
Bill
  • Comment on Re^2: conditional print. Is correct to use it?

Replies are listed 'Best First'.
Re^3: conditional print. Is correct to use it?
by choroba (Cardinal) on Oct 27, 2020 at 16:03 UTC
    See "Scalar values" in perldata.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^3: conditional print. Is correct to use it?
by haukex (Archbishop) on Oct 28, 2020 at 21:21 UTC
    Your complete list of false values is one of those "well known" facts that I cannot find the documentation for.

    There used to be a section in perlsyn, and I wrote the node Truth and Falsehood as a replacement.

      Thanks, I "sorta" remembered that it was in perlsyn and was surprised to not find it there. My search today of perldoc.perl failed to find the article in either perldata or perl5280delta. (searched for FALSE and for Boolean) A google search found an obsolete reference to the perlsyn article. I still do not know what I could have done different to find it myself.
      Bill

Log In?
Username:
Password:

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

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

    No recent polls found