Well once upon a time there was a flamewar on p5p. It was not a small flamewar. It was one of those things which went on and on and on through hundreds of messages. It was originally about whether chmod should accept symbolic modes (eg "o+w" to add write permission for the owner). Some liked the idea. Others though it was bloat. Some thought that people who couldn't sling bits were better off serving Real Programmers their fries. You know how it is.

As these things will go, it digressed. One of many threads got into some complaining about what beasts the FileHandle and IO::* modules had turned into, with a comment that the actual need was simple.

At that point Tom Christiansen replied pointing out that the original need was already met. There was some discussion and surprise as people wondered how it worked. Not all of which is easy to trace in the link because the thread was so long that the automatic thread reconstruction is a little flaky...

The construct was around before that. I don't know when it was originally discovered, but certainly many big names in the Perl community were surprised by it in 1999.


In reply to History of do local? by tilly
in thread auto-vivifying file handles by John M. Dlugosz

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.