I don't follow your line of reasoning either

Essentially, I don't mind one way or the other within the main of (especially short) scripts.

That is, I fully appreciate the necessity for modules to localise (whether through local or lexicals), their affects upon the global environment. The global environment is the property of the top-level script.

But at the top-level of a script, I think it is a matter of choice, and do not see the need to dictate it one way or the other. If it was that imperative, then we'd also have to re-open STDIN, STDOUT STDERR, ARGV etc. to lexicals in every script, but we don't.

As for my preference, I prefer BAREWORDS for IO entities, because I think it serves to highlight an important distinction. That of things which have far-reaching (global) side-effects, and those that do not. I find the prevalence of the desire to make these two quite different things all look the same regretable.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"

In reply to Re^4: Inserting a file inside of another by BrowserUk
in thread Inserting a file inside of another 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.