in reply to Re^4: Local for lexicals
in thread Local for lexicals
Is it really the case that setting aside a value to be restored at the end of scope is what is meant by “dynamic scoping”?Yes.
And package variables allow for dynamic scoping of their values. Lexical variables have lexical scoping. It's that simple. Perl gives you options. Want lexical scoping? Use lexical variables. Want dynamic scoping? Use package variables and local.
What's the problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Local for lexicals
by doom (Deacon) on Aug 10, 2009 at 21:26 UTC | |
by LanX (Saint) on Aug 10, 2009 at 22:12 UTC | |
|
Re^6: Local for lexicals
by JadeNB (Chaplain) on Aug 10, 2009 at 16:27 UTC |