---
title: "/* dbmrefcnt--; */ /* doesn't work, rats */ — Larry Wall Quote #262 | QuotesBy.net"
description: "/* dbmrefcnt--; */ /* doesn't work, rats */ — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # /\* dbmrefcnt--; \*/ /\* doesn't work, rats \*/

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

[Bug](https://quotesby.net/Larry-Wall/bug/)[Memory](https://quotesby.net/Larry-Wall/memory/)[Reference](https://quotesby.net/topics/reference/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9C%2F%2A%20dbmrefcnt--%3B%20%2A%2F%20%2F%2A%20doesn%27t%20work%2C%20rats%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F262%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9C%2F%2A%20dbmrefcnt--%3B%20%2A%2F%20%2F%2A%20doesn%27t%20work%2C%20rats%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F262%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F262%2F)

## About this quote

What does it mean?A commented‑out decrement of a dbm reference count is marked as not working and frustrating.In plain termsThe reference count decrement is broken and disabled.What can you take from it?Fix the reference counting logic instead of commenting it out.

### Where it applies

- when fixing resource leaks
- in database modules

### Putting it to work

- repair dbmrefcnt logic
- add tests for ref counting

### Questions to consider

- What are the consequences of disabling ref count updates?
- How to verify proper reference handling?

### Another view

Commenting out code can hide bugs and cause leaks.

## More from Larry Wall

1. > /\* 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")
2. > Be consistent.

[Permalink to quote \#265](https://quotesby.net/Larry-Wall/265/ "Permalink to quote 265")
3. > /\* 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")

## Related quotes

1. > Shazaam!

[Dave Chappelle](https://quotesby.net/Dave-Chappelle)[Dave Chappelle quote \#11](https://quotesby.net/Dave-Chappelle/11/ "Permalink to quote 11")
2. > I charm in vain; for never again, All keenly as my glance I bend, Will Memory, goddess coy, Embody for my joy Departed days, nor let me gaze On thee, my fairy …

[Lewis Carroll](https://quotesby.net/Lewis-Carroll)[Lewis Carroll quote \#1](https://quotesby.net/Lewis-Carroll/1/ "Permalink to quote 1")
3. > Yesterday, all my troubles seemed so far away Now it looks as though they're here to stay. Oh, I believe in yesterday.

[Paul McCartney](https://quotesby.net/Paul-McCartney)[Paul McCartney quote \#1](https://quotesby.net/Paul-McCartney/1/ "Permalink to quote 1")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "/* dbmrefcnt--; */ /* doesn't work, rats */",
    "url": "https://quotesby.net/Larry-Wall/262/",
    "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 #262",
            "item": "https://quotesby.net/Larry-Wall/262/"
        }
    ]
}
```
