---
title: "True, it returns ' ' for false, but ' ' is an even more interesting n… — Larry Wall Quote #90 | QuotesBy.net"
description: "True, it returns ' ' for false, but ' ' is an even more interesting number than 0. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

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

[Larry Wall](https://quotesby.net/Larry-Wall)\#90

[Programming](https://quotesby.net/Larry-Wall/programming/)[Perl](https://quotesby.net/Larry-Wall/perl/)[Syntax](https://quotesby.net/Larry-Wall/syntax/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CTrue%2C%20it%20returns%20%27%20%27%20for%20false%2C%20but%20%27%20%27%20is%20an%20even%20more%20interesting%20number%20than%200.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F90%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CTrue%2C%20it%20returns%20%27%20%27%20for%20false%2C%20but%20%27%20%27%20is%20an%20even%20more%20interesting%20number%20than%200.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F90%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F90%2F)

## About this quote

What does it mean?False is represented by an empty string, which is even more intriguing than zero.In plain termsPerl uses an empty string for false, a quirky choice.What can you take from it?Be aware of language‑specific false values.

### Where it applies

- debugging
- learning Perl

### Putting it to work

- test for definedness
- avoid implicit conversion

### Questions to consider

- How does Perl's false value affect code?
- When might this be problematic?

### Another view

Empty strings can also be truthy in other contexts.

## More from Larry Wall

1. > I'm sure a mathematician would claim that 0 and 1 are both very interesting numbers. :-)

[Permalink to quote \#89](https://quotesby.net/Larry-Wall/89/ "Permalink to quote 89")
2. > Any false value is gonna be fairly boring in Perl, mathematicians notwithstanding.

[Permalink to quote \#91](https://quotesby.net/Larry-Wall/91/ "Permalink to quote 91")
3. > I think you didn't get a reply because you used the terms 'correct' and 'proper', neither of which has much meaning in Perl culture. :-)

[Permalink to quote \#88](https://quotesby.net/Larry-Wall/88/ "Permalink to quote 88")

## Related quotes

1. > And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#2](https://quotesby.net/Larry-Wall/2/ "Permalink to quote 2")
2. > &gt; (It's sorta like sed, but not. It's sorta like awk, but not. etc.) Guilty as charged. Perl is happily ugly, and happily derivative.

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#51](https://quotesby.net/Larry-Wall/51/ "Permalink to quote 51")
3. > We toast the Lisp programmer who pens his thoughts within nests of parentheses.

[Alan Perlis](https://quotesby.net/Alan-Perlis)[Alan Perlis quote \#2](https://quotesby.net/Alan-Perlis/2/ "Permalink to quote 2")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "True, it returns ' ' for false, but ' ' is an even more interesting number than 0.",
    "url": "https://quotesby.net/Larry-Wall/90/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #90",
            "item": "https://quotesby.net/Larry-Wall/90/"
        }
    ]
}
```
