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
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
|Rating||Vote %||# of Votes|
Want to increase the number of votes and resource rating for this listing?
Place a Coping with Scoping Vote Box on your website.