---
title: "Meaning & Key Takeaway of: Doing linear scans over an associative…"
description: "\"Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi.\" — Larry Wall"
image: "https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png"
---

#  Doing linear scans over an associative array is like…

![“Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi.” quote by Larry Wall](https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png)   [Download](https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png) [Open image](https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png)

> “Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi.”

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Comparing linear scans in associative arrays to a loaded Uzi illustrates extreme inefficiency and danger.

**In simple terms:** Scanning arrays is wildly inefficient, like a dangerous weapon.

Key Takeaway

Optimize data structures to avoid costly operations.

Themes

programming efficiency data structures performance humor

Mood

technical practical

Type

educational humorous

When to use this quote

- software development
- system design
- debugging

Key Concepts

algorithmic complexity resource management code safety

Questions to Reflect On

- How can you improve lookup speed?
- What alternatives exist to linear scans?

A Different Perspective

Analogy may exaggerate, obscuring practical solutions.

★ ★ ★ ★ ★   No ratings yet

[Clubs](https://sms4smile.com/quotes/about/clubs/) [Death](https://sms4smile.com/quotes/about/death/) [Loaded](https://sms4smile.com/quotes/about/loaded/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [“The pictures slipped past again and I kept looking at them. Some of the scans were sepia pictures, going back a hundred years; some…](https://sms4smile.com/quotes/jeffery-deaver/the-pictures-slipped-past-again-and-i-kept-looking-at-them-some-of/)

[Jeffery Deaver](https://sms4smile.com/quotes/author/jeffery-deaver/)

> [I can look at a photo and tell you about your child's temperament and personality. All that scans in seconds.](https://sms4smile.com/quotes/jo-frost/i-can-look-at-a-photo-and-tell-you-about-your-child-s-temperament-and/)

[Jo Frost](https://sms4smile.com/quotes/author/jo-frost/)

> [I remember one time I'm batting against the Dodgers in Milwaukee. They lead, 2 - 1, it's the bottom of the ninth, bases loaded,…](https://sms4smile.com/quotes/bob-uecker/i-remember-one-time-i-m-batting-against-the-dodgers-in-milwaukee-they/)

[Bob Uecker](https://sms4smile.com/quotes/author/bob-uecker/)

> [This was in San Francisco, in 1987. A bunch of kids were camped out in the Riviera Hotel - boy hustlers and their sugar…](https://sms4smile.com/quotes/jim-goldberg/this-was-in-san-francisco-in-1987-a-bunch-of-kids-were-camped-out-in/)

[Jim Goldberg](https://sms4smile.com/quotes/author/jim-goldberg/)

> [The simple reason no embryo can develop without at least one X chromosome is that it's the X, not the Y, that is loaded…](https://sms4smile.com/quotes/kenneth-r-miller/the-simple-reason-no-embryo-can-develop-without-at-least-one-x/)

[Kenneth R. Miller](https://sms4smile.com/quotes/author/kenneth-r-miller/)

> [Anybody who is an entrepreneur is a person who essentially has impaired judgment. The odds of success are zilch. This valley is loaded to…](https://sms4smile.com/quotes/tom-peters/anybody-who-is-an-entrepreneur-is-a-person-who-essentially-has-2/)

[Tom Peters](https://sms4smile.com/quotes/author/tom-peters/)

> [I never use the word, it's loaded. What love means to me is need.](https://sms4smile.com/quotes/john-cale/i-never-use-the-word-it-s-loaded-what-love-means-to-me-is-need/)

[John Cale](https://sms4smile.com/quotes/author/john-cale/)

> [I don't like rats, but there's not much else I don't like. The problem with rats is they have no fear of human beings,…](https://sms4smile.com/quotes/david-attenborough/i-don-t-like-rats-but-there-s-not-much-else-i-don-t-like-the-problem/)

[David Attenborough](https://sms4smile.com/quotes/author/david-attenborough/)

> [If you want to shoot rare, fast-moving elephants, you should always carry a loaded gun.](https://sms4smile.com/quotes/warren-buffett/if-you-want-to-shoot-rare-fast-moving-elephants-you-should-always/)

[Warren Buffett](https://sms4smile.com/quotes/author/warren-buffett/)

> [Of all the passions of mankind, the love of novelty most rules the mind. In search of this, from realm to realm we roam.…](https://sms4smile.com/quotes/shelby-foote/of-all-the-passions-of-mankind-the-love-of-novelty-most-rules-the/)

[Shelby Foote](https://sms4smile.com/quotes/author/shelby-foote/)

> [If liberals can seize our guns because they are dangerous, we have no chance of holding on to our cars and our homes. The…](https://sms4smile.com/quotes/paul-craig-roberts/if-liberals-can-seize-our-guns-because-they-are-dangerous-we-have-no/)

[Paul Craig Roberts](https://sms4smile.com/quotes/author/paul-craig-roberts/)

> [When they were done downloading all the information off each hard drive, they took all the computers, all the literature, and loaded everything into…](https://sms4smile.com/quotes/sherman-austin/when-they-were-done-downloading-all-the-information-off-each-hard/)

[Sherman Austin](https://sms4smile.com/quotes/author/sherman-austin/)

> [They have seized upon the government by bribery and corruption. They have made speculation and public robbery a science. They have loaded the nation,…](https://sms4smile.com/quotes/denis-kearney/they-have-seized-upon-the-government-by-bribery-and-corruption-they/)

[Denis Kearney](https://sms4smile.com/quotes/author/denis-kearney/)

> [One would think that a system loaded with such gross and vulgar absurdities as Scripture religion is could never have obtained credit; yet we…](https://sms4smile.com/quotes/thomas-paine/one-would-think-that-a-system-loaded-with-such-gross-and-vulgar/)

[Thomas Paine](https://sms4smile.com/quotes/author/thomas-paine/)

> [I think cricket is there in Usain Bolt's blood. Since I got to watch from close quarters, it was amazing to see him run…](https://sms4smile.com/quotes/harbhajan-singh/i-think-cricket-is-there-in-usain-bolt-s-blood-since-i-got-to-watch/)

[Harbhajan Singh](https://sms4smile.com/quotes/author/harbhajan-singh/)

## More by Larry Wall

> [Not that I have anything much against redundancy. But I said that already.](https://sms4smile.com/quotes/larry-wall/not-that-i-have-anything-much-against-redundancy-but-i-said-that/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [Perhaps you should compile your Perl with long doubles one of these megaseconds.](https://sms4smile.com/quotes/larry-wall/perhaps-you-should-compile-your-perl-with-long-doubles-one-of-these/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [Take Lisp, you know its the most beautiful language in the world -- at least up until Haskell came along.](https://sms4smile.com/quotes/larry-wall/take-lisp-you-know-its-the-most-beautiful-language-in-the-world-at/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, 'What is that, swearing?](https://sms4smile.com/quotes/larry-wall/i-m-reminded-of-the-day-my-daughter-came-in-looked-over-my-shoulder/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [Yes, but I did manage to increase the amount of virginity in the world by that method.](https://sms4smile.com/quotes/larry-wall/yes-but-i-did-manage-to-increase-the-amount-of-virginity-in-the-world/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [I won't mention any names, because I don't want to get sun4's into trouble.](https://sms4smile.com/quotes/larry-wall/i-won-t-mention-any-names-because-i-don-t-want-to-get-sun4-s-into/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [And besides, if Perl really takes off in the Windows space, I think the rest of us would just as soon have a double-agent…](https://sms4smile.com/quotes/larry-wall/and-besides-if-perl-really-takes-off-in-the-windows-space-i-think-the/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [In general, they do what you want, unless you want consistency.](https://sms4smile.com/quotes/larry-wall/in-general-they-do-what-you-want-unless-you-want-consistency/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [I suppose you could switch grammars once you've seen 'use strict subs'.](https://sms4smile.com/quotes/larry-wall/i-suppose-you-could-switch-grammars-once-you-ve-seen-use-strict-subs/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [While I have historically been a late worker, you know, sometimes I even like to get up early and see what's happened in the…](https://sms4smile.com/quotes/larry-wall/while-i-have-historically-been-a-late-worker-you-know-sometimes-i/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [All language designers are arrogant. Goes with the territory...](https://sms4smile.com/quotes/larry-wall/all-language-designers-are-arrogant-goes-with-the-territory/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [Perl has a long tradition of working around compilers.](https://sms4smile.com/quotes/larry-wall/perl-has-a-long-tradition-of-working-around-compilers/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [Part of language design is perturbing the proposed feature in various directions to see how it might generalize in the future.](https://sms4smile.com/quotes/larry-wall/part-of-language-design-is-perturbing-the-proposed-feature-in-various/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [We can debug relationships, but it's always good policy to consider the people themselves to be features. People get annoyed when you try to…](https://sms4smile.com/quotes/larry-wall/we-can-debug-relationships-but-it-s-always-good-policy-to-consider/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

> [The whole intent of Perl 5's module system was to encourage the growth of Perl culture rather than the Perl core.](https://sms4smile.com/quotes/larry-wall/the-whole-intent-of-perl-5-s-module-system-was-to-encourage-the/)

[Larry Wall](https://sms4smile.com/quotes/author/larry-wall/)

[Explore all 226 Larry Wall quotes ](https://sms4smile.com/quotes/author/larry-wall/)

## More Clubs quotes

> [When you go to a club it's not about being black or white or heavy or thick. I'm shaking my ass because I want…](https://sms4smile.com/quotes/miley-cyrus/when-you-go-to-a-club-it-s-not-about-being-black-or-white-or-heavy-or/)

[Miley Cyrus](https://sms4smile.com/quotes/author/miley-cyrus/)

> [ I failed, I think, seven \[or\] eight times before I finally got my first \[championship\]. It was just, you know, just about me growing… ](https://sms4smile.com/quotes/shaquille-o-neal/i-failed-i-think-seven-or-eight-times-before-i-finally-got-my-first/)

[Shaquille O'Neal](https://sms4smile.com/quotes/author/shaquille-o-neal/)

> [So I went to a club the other day, which is timely because my self esteem had been hovering right around 'normal' and I…](https://sms4smile.com/quotes/mike-birbiglia/so-i-went-to-a-club-the-other-day-which-is-timely-because-my-self/)

[Mike Birbiglia](https://sms4smile.com/quotes/author/mike-birbiglia/)

> [There's nothing like the energy in a small comedy club room or a small theater when it's going really well. I can see everybody's…](https://sms4smile.com/quotes/drew-carey/there-s-nothing-like-the-energy-in-a-small-comedy-club-room-or-a/)

[Drew Carey](https://sms4smile.com/quotes/author/drew-carey/)

> [In my former life I was in insider, as much as anybody else. And I knew what it's like, and I still know what…](https://sms4smile.com/quotes/donald-trump/in-my-former-life-i-was-in-insider-as-much-as-anybody-else-and-i-knew/)

[Donald Trump](https://sms4smile.com/quotes/author/donald-trump/)

> [Every wife ought to answer for her man. If the husband be engaged in a seditious club, or drinks mysterious healths, or be frugal…](https://sms4smile.com/quotes/joseph-addison/every-wife-ought-to-answer-for-her-man-if-the-husband-be-engaged-in-a/)

[Joseph Addison](https://sms4smile.com/quotes/author/joseph-addison/)

> [ \[Could you show us how Lana Del Rey dances in a club?\] That would be illegal. ](https://sms4smile.com/quotes/lana-del-rey/could-you-show-us-how-lana-del-rey-dances-in-a-club-that-would-be/)

[Lana Del Rey](https://sms4smile.com/quotes/author/lana-del-rey/)

> [The good Bishop of Assisi expressed a sort of horror at the hard life which the Little Brothers lived at the Portiuncula, without comforts,…](https://sms4smile.com/quotes/anonymous/the-good-bishop-of-assisi-expressed-a-sort-of-horror-at-the-hard-life/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [The first time I went to Abbey Road and put those headphones on, I discovered I had two voices. I no longer had to…](https://sms4smile.com/quotes/cilla-black/the-first-time-i-went-to-abbey-road-and-put-those-headphones-on-i/)

[Cilla Black](https://sms4smile.com/quotes/author/cilla-black/)

> [I just started writing for my own amusement and occasionally singing in little clubs around Los Angeles. Then I wrote 'The Rose,' and through…](https://sms4smile.com/quotes/amanda-mcbroom/i-just-started-writing-for-my-own-amusement-and-occasionally-singing/)

[Amanda McBroom](https://sms4smile.com/quotes/author/amanda-mcbroom/)

> [The clubs, that's easy to cut out, because I know when the season ends I can look forward to going out.](https://sms4smile.com/quotes/usain-bolt/the-clubs-that-s-easy-to-cut-out-because-i-know-when-the-season-ends/)

[Usain Bolt](https://sms4smile.com/quotes/author/usain-bolt/)

> [Raves when it was safe to be free &amp; wave your hands in the air, like you didn't even care! Not scared to break…](https://sms4smile.com/quotes/progrezza/raves-when-it-was-safe-to-be-free-wave-your-hands-in-the-air-like-you/)

[Progrezza](https://sms4smile.com/quotes/author/progrezza/)

> [Well, the coffeehouse audiences never know what they're going to get, and all the comics are different, as opposed to when you go to…](https://sms4smile.com/quotes/kathy-griffin/well-the-coffeehouse-audiences-never-know-what-they-re-going-to-get/)

[Kathy Griffin](https://sms4smile.com/quotes/author/kathy-griffin/)

> [I assume my stance, and take back the club, low, slowly; at the top, my eyes fog over, and my joints dip and swirl…](https://sms4smile.com/quotes/john-updike/i-assume-my-stance-and-take-back-the-club-low-slowly-at-the-top-my/)

[John Updike](https://sms4smile.com/quotes/author/john-updike/)

> [A new club is like having a new girlfriend – you don't have feelings straight away](https://sms4smile.com/quotes/michael-owen/a-new-club-is-like-having-a-new-girlfriend-you-don-t-have-feelings/)

[Michael Owen](https://sms4smile.com/quotes/author/michael-owen/)

[Browse all 2,237 Clubs quotes ](https://sms4smile.com/quotes/about/clubs/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi.",
            "creator": {
                "@type": "Person",
                "name": "Larry Wall"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/larry-wall/doing-linear-scans-over-an-associative-array-is-like-trying-to-club/",
            "about": {
                "@type": "Thing",
                "name": "Clubs"
            },
            "@id": "https://sms4smile.com/quotes/larry-wall/doing-linear-scans-over-an-associative-array-is-like-trying-to-club/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png",
                "contentUrl": "https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png",
                "url": "https://sms4smile.com/quotes/i/0b5/larry-wall-1576_clubs_doing-linear-scans-over-an-associative-a_2687875.png",
                "width": 1080,
                "height": 1080,
                "caption": "“Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi.” — Larry Wall",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Larry Wall",
                    "item": "https://sms4smile.com/quotes/author/larry-wall/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "Doing linear scans over an associative...",
                    "item": "https://sms4smile.com/quotes/larry-wall/doing-linear-scans-over-an-associative-array-is-like-trying-to-club/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/larry-wall/doing-linear-scans-over-an-associative-array-is-like-trying-to-club/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
