It includes advice as simple as using the three-argument form of open and lexical file handles
I'm sure you know this, but some readers may get the wrong impression. Neither three-argument open() nor lexical file handles dates from the last 2-3 years. Three arg open dates from 5.6 (released last millennium, when Perl6 was still a term referring to Chips aborted Topaz project).

"Lexical file handles" (or rather, references to file handles stored in a lexical variable) have been available for much longer. I don't have anything older than 5.005_04 at the moment, but I think they worked since 5.000. What was new in 5.6 (and that's what made them popular) was the autovivification of them. The following code uses "lexical file handles" and runs on pre-5.6 code:

use strict; local *FILE; my $fh = \*FILE; open $fh, "</etc/passwd" or die; while (<$fh>) { print; } __END__


In reply to Re^2: Summary of Perl in the past 2-3 years by JavaFan
in thread Summary of Perl in the past 2-3 years by Anonymous Monk

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.