Skip to content
quotesby

About this quote

What does it mean?
Any false value is dull in Perl, regardless of mathematical nuance.
In plain terms
False values are boring in Perl.
What can you take from it?
Focus on meaningful truthy values.

Where it applies

  • code style guides
  • teaching

Putting it to work

  • prefer clear true values
  • document false cases

Questions to consider

  • When is a false value meaningful?
  • How can you make false values clearer?

Another view

Sometimes a false value carries important semantic weight.

More from Larry Wall

  1. True, it returns ' ' for false, but ' ' is an even more interesting number than 0.

    Permalink to quote #90
  2. We didn't put in ^^ because then we'd have to keep telling people what it means, and then we'd have to keep telling them why it doesn't short circuit. :-/

    Permalink to quote #92
  3. I'm sure a mathematician would claim that 0 and 1 are both very interesting numbers. :-)

    Permalink to quote #89

Related quotes

  1. True, it returns ' ' for false, but ' ' is an even more interesting number than 0.

    Larry WallLarry Wall quote #90
  2. Q. Why is this so clumsy? A. The trick is to use Perl's strengths rather than its weaknesses.

    Larry WallLarry Wall quote #295
  3. Simplicate, then add lightness.

    Colin ChapmanColin Chapman quote #1