In the Beginning every part of your program had access to all the variables in every other part of the program. That turned out to be a problem, so language designers invented local variables, which were visible in only a small part of the program. This article discusses the difference between package variables and lexical variables. Topics include: global variables, lexical variables, local declaration, my declaration, my variable, package declaration, package qualifier, package variable, private variable, scope, use strict vars, and use vars.
Coping with Scoping
http://perl.plover.com/FAQs/Namespaces.html
N/A
N/A
N/A
N/A
N/A
N/A
Free
N/A
Mark-Jason Dominus
perl variable scope, perl local variables, perl package variables, perl strict vars, perl use vars, perl global variables, perl lexical variables, perl private variables, perl scope
Perl namespace management and variable scope
In the Beginning every part of your program had access to all the variables in every other part of the program. That turned out to be a problem, so language designers invented local variables, which were visible in only a small part of the program. This article discusses the difference between package variables and lexical variables. Topics include: global variables, lexical variables, local declaration, my declaration, my variable, package declaration, package qualifier, package variable, private variable, scope, use strict vars, and use vars.
9
7.77
10
3
| Rating | Vote % | # of Votes |
|---|---|---|
| 10 | 11% | 1 |
| 9 | 22% | 2 |
| 8 | 44% | 4 |
| 7 | 11% | 1 |
| 6 | 0% | 0 |
| 5 | 0% | 0 |
| 4 | 0% | 0 |
| 3 | 11% | 1 |
| 2 | 0% | 0 |
| 1 | 0% | 0 |
Want to increase the number of votes and resource rating for this listing?
Place a Coping with Scoping Vote Box on your website.