On Fri, 15 Jun 2001, Tim Musson wrote:

> PJ> It refers to scope. The lexical variable cannot be seen outside of
> PJ> the scope in which it is declared. This can be determined during
> PJ> lexical analysis.
>
> Now I'm stuck on the word scope. Is that like keeping the variable
> within a sub or foreach or while?

Yes, that's exactly what it is.

> I can make Perl do what I want usually (just found this list, and it
> has been a huge help!), but want to go to the next level.  Which as I
> see is is getting a firmer grasp of Perl, then move into OOP.

Note also that an object also has it's own scope -- variables in a class
are only visible inside the methods of that class.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Life is the childhood of our immortality.
                -- Goethe

Reply via email to