---
title: "Well, you can implement a Perl peek() with unpack('P',...). Once you … — Larry Wall Quote #140 | QuotesBy.net"
description: "Well, you can implement a Perl peek() with unpack('P',...). Once you have that, there's only security through obscurity. :-) — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # Well, you can implement a Perl peek() with unpack('P',...). Once you have that, there's only security through obscurity. :-)

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

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

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CWell%2C%20you%20can%20implement%20a%20Perl%20peek%28%29%20with%20unpack%28%27P%27%2C...%29.%20Once%20you%20have%20that%2C%20there%27s%20only%20security%20through%20obscurity.%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F140%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CWell%2C%20you%20can%20implement%20a%20Perl%20peek%28%29%20with%20unpack%28%27P%27%2C...%29.%20Once%20you%20have%20that%2C%20there%27s%20only%20security%20through%20obscurity.%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F140%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F140%2F)

## About this quote

What does it mean?You can implement Perl's peek() with unpack('P',...), but then security relies on obscurity.In plain termsImplementing peek() is possible, but security is weak.What can you take from it?Don't rely on hidden tricks for security.

### Where it applies

- low‑level debugging
- memory inspection

### Putting it to work

- use proper security mechanisms
- avoid security through obscurity

### Questions to consider

- What are safer alternatives to security through obscurity?

### Another view

Some low‑level access may be unavoidable in certain contexts.

## More from Larry Wall

1. > To ordinary folks, conversion is not always automatic. It's something that may or may not require explicit assistance. See Billy Graham. :-)

[Permalink to quote \#139](https://quotesby.net/Larry-Wall/139/ "Permalink to quote 139")
2. > It may be possible to get this condition from within Perl if a signal handler runs at just the wrong moment. Another point for Chip... :-)

[Permalink to quote \#141](https://quotesby.net/Larry-Wall/141/ "Permalink to quote 141")
3. > I think that's easier to read. Pardon me. Less difficult to read.

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

## Related quotes

1. > But the possibility of abuse may be a good reason for leaving capabilities out of other computer languages, it's not a good reason for leaving capabilities out…

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#122](https://quotesby.net/Larry-Wall/122/ "Permalink to quote 122")
2. > Although the Perl Slogan is There's More Than One Way to Do It, I hesitate to make 10 ways to do something. :-)

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

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "Well, you can implement a Perl peek() with unpack('P',...). Once you have that, there's only security through obscurity. :-)",
    "url": "https://quotesby.net/Larry-Wall/140/",
    "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 #140",
            "item": "https://quotesby.net/Larry-Wall/140/"
        }
    ]
}
```
