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