in reply to Re^3: Inserting a file inside of another
in thread Inserting a file inside of another

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"
  • Comment on Re^4: Inserting a file inside of another

Replies are listed 'Best First'.
Re^5: Inserting a file inside of another
by ikegami (Patriarch) on Feb 20, 2010 at 20:23 UTC
    Well argued. I just don't use a different style for top-level vs deeper, so I noticed it. (In fact, I surround my top-level with curlies, so I don't actually have a top-level.) It wasn't a point of great importance, obviously.

      When I said :

      But at the top-level of a script

      I should have said, 'Within a top-level script', but that doesn't detract from your point re:consistancy.


      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.