Any false value is gonna be fairly boring in Perl, mathematicians notwithstanding.
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
Putting it to work
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
True, it returns ' ' for false, but ' ' is an even more interesting number than 0.
Permalink to quote #90 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 I'm sure a mathematician would claim that 0 and 1 are both very interesting numbers. :-)
Permalink to quote #89
Related quotes
True, it returns ' ' for false, but ' ' is an even more interesting number than 0.
Larry WallLarry Wall quote #90 Q. Why is this so clumsy? A. The trick is to use Perl's strengths rather than its weaknesses.
Larry WallLarry Wall quote #295 Simplicate, then add lightness.
Colin ChapmanColin Chapman quote #1