Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> perl >> liblexical-var-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: liblexical-var-perl  ]

软件包: liblexical-var-perl (0.009-3build3)

Perl module for using static variables without namespace pollution

Lexical::Var implements lexical scoping of 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 subroutine names that appear directly in code, such as "&foo" and "foo(123)". Normally, in the absence of any particular declaration, these would refer to the subroutine of that name located in the current package. A Lexical::Sub declaration can change this to refer to any particular subroutine, bypassing the package system entirely. A subroutine name that includes an explicit package part, such as "&main::foo", always refers to the subroutine 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").

其他与 liblexical-var-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议

下载 liblexical-var-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 21.1 kB59 kB [文件列表]
i386 21.5 kB58 kB [文件列表]