Despite not being a native English speaker, I'm familiar with the meaning of enclosing

Gah. If ive insulted you then I apologise unreservedly. I certainly had no intention of doing so.

So, what kind of scope do you think it is (in relation to $")?

Not an enclosing one. To me file level scope can not really be considered to be an enclosing scope. Sure its a scope, buts its hardly an enclosed one. To me enclosure requires a fence of some sort, as the definition says it must be "surrounded on all sides, fenced in to prevent common use". A file isnt surrounded on all sides, whereas a block is.

To use an analogy from geography: the island Great Britian could be construed as a scope, yet it can hardly be construed as enclosed (by anything other than the sea that is), whereas my aunt and uncles property can be. In other words I see a file as being like an island, and a block like a fenced in field. (And a package like a country. The more i think about this analogy the more i like it :-) The island represents a scope but is not really enclosed, but it can contain any number of enclosures.

Anyway, I dont mean to play word games with you, just to explain the spirit or sense in which i used the term "enclosing scope". And if you reread my original post you'll see I used the phrase "And doesnt have any potential for accidental action at a distance which is what you get by setting any of the punction vars without localizing them as tightly as possible" (italics added of course). Which I think at least shows that im not trying to wriggle off the hook here :-)

If you follow the analogy further, and island can grow or shrink without really changing its nature (its still an island). But for an enclosure to grow or shrink somebody has to move the fence. Likewise with files and blocks. A block doesnt get bigger unless you move the braces (even if your editor does it for you :-). A file gets bigger by just adding a new line to the end. Nothing physicial (in a digital context) has to move.

Cheers,


---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

In reply to Re: Re: find and replace project with values coming from a table by demerphq
in thread find and replace project with values coming from a table by optiontrader

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.