Static variables without namespace pollution
This module implements lexical scoping of static variables and subroutines. Although it can be used directly, it is mainly intended to be infrastructure for modules that manage namespaces.
This module influences the meaning of single-part variable names that appear directly in code, such as "'$foo'". Normally, in the absence of any particular declaration, or under the effect of an 'our' declaration, this would refer to the scalar variable of that name located in the current package. A 'Lexical::Var' declaration can change this to refer to any particular scalar, bypassing the package system entirely. A variable name that includes an explicit package part, such as "'$main::foo'", always refers to the variable in the specified package, and is unaffected by this module. A symbolic reference through a string value, such as "'${'foo'}'", also looks in the package system, and so is unaffected by this module.
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:perl/perl-Lexical-Var && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
Lexical-Var-0.010.tar.gz | 0000040757 39.8 KB | |
lexvar.patch | 0000002139 2.09 KB | |
perl-Lexical-Var.changes | 0000004585 4.48 KB | |
perl-Lexical-Var.spec | 0000004431 4.33 KB |
Comments 0