Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Lexical-Var | Distribution: Mageia |
Version: 0.10.0 | Vendor: Mageia.Org |
Release: 3.mga10 | Build date: Fri Aug 23 16:15:41 2024 |
Group: Development/Perl | Build host: localhost |
Size: 64671 | Source RPM: perl-Lexical-Var-0.10.0-3.mga10.src.rpm |
Packager: tv <tv> | |
Url: https://metacpan.org/release/Lexical-Var | |
Summary: 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. The types of name that can be influenced are scalar ("$foo"), array ("@foo"), hash ("%foo"), subroutine ("&foo"), and glob ("*foo"). A definition for any of these names also affects code that logically refers to the same entity, even when the name is spelled without its usual sigil. For example, any definition of "@foo" affects element references such as "$foo[0]". Barewords in filehandle context actually refer to the glob variable. Bareword references to subroutines, such as "foo(123)", only work on Perl 5.11.2 and later; on earlier Perls you must use the "&" sigil, as in "&foo(123)". Where a scalar name is defined to refer to a constant (read-only) scalar, references to the constant through the lexical namespace can participate in compile-time constant folding. This can avoid the need to check configuration values (such as whether debugging is enabled) at runtime. A name definition supplied by this module takes effect from the end of the definition statement up to the end of the immediately enclosing block, except where it is shadowed within a nested block. This is the same lexical scoping that the "my", "our", and "state" keywords supply. Definitions from Lexical::Var and from "my"/"our"/"state" can shadow each other. These lexical definitions propagate into string "eval"s, on Perl versions that support it (5.9.3 and later). This module only manages variables of static duration (the kind of duration that "our" and "state" variables have). To get a fresh variable for each invocation of a function, use "my".
GPL+ or Artistic
* Fri Aug 23 2024 tv <tv> 0.10.0-3.mga10 + Revision: 2089636 - Rebuild for perl-5.40 * Fri Dec 01 2023 tv <tv> 0.10.0-2.mga10 + Revision: 2012341 - Rebuild for perl-5.38 * Sun Sep 10 2023 tv <tv> 0.10.0-1.mga10 + Revision: 1985796 - update to 0.010
/usr/lib/.build-id /usr/lib/.build-id/62 /usr/lib/.build-id/62/4750ce5b9b7a5697613ecdf77b29b695d9fa61 /usr/lib64/perl5/vendor_perl/Lexical /usr/lib64/perl5/vendor_perl/Lexical/Sub.pm /usr/lib64/perl5/vendor_perl/Lexical/Var.pm /usr/lib64/perl5/vendor_perl/auto /usr/lib64/perl5/vendor_perl/auto/Lexical /usr/lib64/perl5/vendor_perl/auto/Lexical/Var /usr/lib64/perl5/vendor_perl/auto/Lexical/Var/Var.so /usr/share/doc/perl-Lexical-Var /usr/share/doc/perl-Lexical-Var/Changes /usr/share/doc/perl-Lexical-Var/META.json /usr/share/doc/perl-Lexical-Var/META.yml /usr/share/doc/perl-Lexical-Var/MYMETA.yml /usr/share/doc/perl-Lexical-Var/README /usr/share/doc/perl-Lexical-Var/SIGNATURE /usr/share/man/man3/Lexical::Sub.3pm.xz /usr/share/man/man3/Lexical::Var.3pm.xz
Generated by rpm2html 1.8.1
Fabrice Bellet, Tue Nov 19 11:59:00 2024