removing features from the language

You're mistaken. Temporarily retracted while the discussion about Perl 8+ is ongoing; Perl 7 will however not remove them.

Therefore, "globals" and file-scope lexicals actually have the same scope ...

That's another whole paragraph explaining things that I know (I too have a background in C and plenty more) to support a point nobody is disputing.

... and the same risks.

No, this does not follow from the explanation you gave, since among other things, it ignores that bareword filehandles are not protected against typos like lexicals are.

File-scope lexicals look like lexicals, but have effectively the same scope as globals.

More repetition of already discussed and undisputed points.

In terms of surprise action-at-a-distance, they carry the same risks.

No, because this ignores the issues of bareword filehandles clashing with package and sub names, among others.

You continuing to "stick your head in the sand" and ignore the disadvantages of bareword filehandles and advantages of lexical filehandles will not make them go away. This is not the basis for a rational discussion, so I'm out.


In reply to Re^8: Is there a problem with using barewords as filehandles ? by haukex
in thread Is there a problem with using barewords as filehandles ? by syphilis

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.