That originated as a change from:

if (explicit) stio->lines = 0;

to:

if (explicit) { io->lines = 0; io->page = 0; io->lines_left = io->page_len; }

made public as:

commit 79072805bf63abe5b5978b5928ab00d360ea3e7f Author: Larry Wall <lwall@netlabs.com> Date: Thu Oct 7 23:00:00 1993 +0000 perl 5.0 alpha 2 [editor's note: from history.perl.org. The sparc executables originally included in the distribution are not in this commit.] 433 files changed, -41401 +64754 lines

You could search for a usenet report of some bug relatively soon before that timestamp.

Resetting $- on explicit close certainly "makes sense". Depending on your particular use case, I can also see it making sense to skip TOP after an explicit close() and then re-use of the same file handle.

- tye        


In reply to Re: close() resets $- to $=, not 0 (git) by tye
in thread close() resets $- to $=, not 0 by shmem

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.