Skip to content
quotesby

About this quote

What does it mean?
You can implement Perl's peek() with unpack('P',...), but then security relies on obscurity.
In plain terms
Implementing 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
  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
  3. I think that's easier to read. Pardon me. Less difficult to read.

    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 WallLarry Wall 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 WallLarry Wall quote #1