---
title: "The autodecrement is not magical. — Larry Wall Quote #274 | QuotesBy.net"
description: "The autodecrement is not magical. — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # The autodecrement is not magical.

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

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

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CThe%20autodecrement%20is%20not%20magical.%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F274%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CThe%20autodecrement%20is%20not%20magical.%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F274%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F274%2F)

## About this quote

What does it mean?The autodecrement operator works predictably, not magically.In plain termsAutodecrement is just a regular operation.What can you take from it?Expect normal behavior from decrement operators.

### Where it applies

- debugging code
- learning language syntax

### Putting it to work

- read documentation
- avoid assumptions

### Questions to consider

- Do you rely on shortcuts without understanding them?

### Another view

Some developers treat it as a mysterious shortcut.

## More from Larry Wall

1. > Remember though that THERE IS NO GENERAL RULE FOR CONVERTING A LIST INTO A SCALAR.

[Permalink to quote \#273](https://quotesby.net/Larry-Wall/273/ "Permalink to quote 273")
2. > \*\*\* The previous line contains the naughty word '$&amp;'. if /(ibm\|apple\|awk)/; # :-)

[Permalink to quote \#275](https://quotesby.net/Larry-Wall/275/ "Permalink to quote 275")
3. > Perl is designed to give you several ways to do anything, so consider picking the most readable one.

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

## 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": "The autodecrement is not magical.",
    "url": "https://quotesby.net/Larry-Wall/274/",
    "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 #274",
            "item": "https://quotesby.net/Larry-Wall/274/"
        }
    ]
}
```
