On Fri, Aug 10, 2001 at 12:22:43AM +0300, raptor wrote:
> thanx,
> Yes I see ... but I was interested WHY when we are in nested subroutines ...
> the inner-one will see the lexical var only the first time !! I mean the

Note that there are _no_ nested subroutines in Perl. You may declare
one inside of the code of other, but that doesn't mean the scoping is
preserved. So what you basicaly have are two global subroutines with
local values. You get the closure for the first invocation. But it's
not the same variable anymore.

PS: Please trim the text you're answering to.

-- 
------------------------------------------------------------------------
 Honza Pazdziora | [EMAIL PROTECTED] | http://www.fi.muni.cz/~adelton/
   .project: Perl, DBI, Oracle, MySQL, auth. WWW servers, DBD::XBase.
Will be off email until Aug 15 -- please don't expect responses until then.

Reply via email to