No I'm not [talking of the scope of the variables now]

The visibility of the variables is the scope of the variables. You were saying that the sub can see the variables. That's means the sub is within the scope of the variables.

It matters where the sub is defined, which you keep saying doesn't matter,

It does matter, I've said as much, and I've never said otherwise.

If the sub's definition was moved outside of the scope of the vars, the sub wouldn't be able to see the vars. I've given an example of this.

Saying that a sub is global, end of discussion is not at all helpful in determining what variables a sub can see

I agree. I never said it was.

By the way, you can ding my reputation all you want.

"You" must be a reference to someone else. I haven't downvoted any of your nodes, in any thread. I've had no problem with your questions. You are putting effort. You are learning.

Mind you, I haven't upvoted many of your nodes either. I always forget to vote.


In reply to Re^4: closure clarity, please by ikegami
in thread closure clarity, please by 7stud

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.