---
title: "if (instr(buf,sys_errlist[errno])) /* you don't see this */ — Larry Wall Quote #261 | QuotesBy.net"
description: "if (instr(buf,sys_errlist[errno])) /* you don't see this */ — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # if (instr(buf,sys\_errlist\[errno\])) /\* you don't see this \*/

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

[Maintenance](https://quotesby.net/Larry-Wall/maintenance/)[Debugging](https://quotesby.net/Larry-Wall/debugging/)[Error](https://quotesby.net/Larry-Wall/error/)[Visibility](https://quotesby.net/topics/visibility/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9Cif%20%28instr%28buf%2Csys_errlist%5Berrno%5D%29%29%20%2F%2A%20you%20don%27t%20see%20this%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F261%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9Cif%20%28instr%28buf%2Csys_errlist%5Berrno%5D%29%29%20%2F%2A%20you%20don%27t%20see%20this%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F261%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F261%2F)

## About this quote

What does it mean?A conditional checks for an error string in a buffer, with a comment noting the code is invisible.In plain termsThe code looks for an error message but is hidden.What can you take from it?Make error checks visible and maintainable.

### Where it applies

- when parsing error messages
- in legacy error handling

### Putting it to work

- log error checks
- remove dead code

### Questions to consider

- Why keep code that never executes?
- How to detect dead branches?

### Another view

If the code never runs, it may be dead and should be removed.

## More from Larry Wall

1. > /\* we have tried to make this normal case as abnormal as possible \*/

[Permalink to quote \#258](https://quotesby.net/Larry-Wall/258/ "Permalink to quote 258")
2. > /\* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. \*/

[Permalink to quote \#264](https://quotesby.net/Larry-Wall/264/ "Permalink to quote 264")
3. > Your csh still thinks true is false. Write to your vendor today and tell them that next year Configure ought to 'rm /bin/csh' unless they fix their blasted she…

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

## Related quotes

1. > Hmm, doubtful. The source code generally wasn't there when I needed it.

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#311](https://quotesby.net/Larry-Wall/311/ "Permalink to quote 311")
2. > A wise man's kingdom is his own breast: or, if he ever looks farther, it will only be to the judgment of a select few, who are free from prejudices, and capabl…

[David Hume](https://quotesby.net/David-Hume)[David Hume quote \#1](https://quotesby.net/David-Hume/1/ "Permalink to quote 1")
3. > Truth lies within a little and certain compass, but error is immense.

[Henry, 1st Viscount Bolingbroke St John](https://quotesby.net/Henry,-1st-Viscount-Bolingbroke-St-John)[Henry, 1st Viscount Bolingbroke St John quote \#1](https://quotesby.net/Henry,-1st-Viscount-Bolingbroke-St-John/1/ "Permalink to quote 1")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "if (instr(buf,sys_errlist[errno])) /* you don't see this */",
    "url": "https://quotesby.net/Larry-Wall/261/",
    "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 #261",
            "item": "https://quotesby.net/Larry-Wall/261/"
        }
    ]
}
```
