Every so often we get a new or elder monk ask a question of the "Hey Doc, it hurts when I do this." nature. Often, the immediate response is "Stop doing that," in accordance with the old old joke.

I would like to encourage you all to put aside your blinders on these questions and look a little closer at what the pathological behavior often winds up teaching us. Today the winner is :eval + no warnings = no memory. I wish I had marked some of the past ones that amused me since they taught me important things.

The issue here is, when you stress something past it's intended limits, you often learn more than what the limit is, you learn why the limit is or that a huge bug exists. =) I've soaked up a lot of interesting data about Perl the language and perl the executable and the systems that perl runs on thanks to the pathological edge-walkers and push-to-the-limit-types.

There are a million of these oddities floating around in any language and many of them are indistinguishable from features. They are the difference between knowing what works and why something broke. Sure we should be suspicious of people doing mad things but the mad people find all the good bugs these days. A few times a year, somebody posts a bit of code to the perl5porters that everyone knows is evil and wrong and sure to break only to discover that no two of them agree on where it breaks. Or worse, that it broke something so unexpected that they all just have to sit back and whistle.

In any case, I'm not asking much, just look a little closer at the weird and wacky. There is more there to learn than you think.

Update: go see one-liner hogs for some serious one-liner pathology. =)

--
$you = new YOU;
honk() if $you->love(perl)


In reply to The benefits of pathological behaviour by extremely

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.