p5-Lexical-Import-0.002_2.txz


Advertisement

Description

p5-Lexical-Import - Clean imports from package-exporting modules

Property Value
Distribution FreeBSD 11
Repository FreeBSD Ports Latest amd64
Package filename p5-Lexical-Import-0.002_2.txz
Package name p5-Lexical-Import
Package version 0.002
Package release 2
Package architecture amd64
Package type txz
Category devel perl5
Homepage https://metacpan.org/release/Lexical-Import
License -
Maintainer sunpoet@FreeBSD.org
Download size 10.88 KB
Installed size 18.43 KB
Lexical::Import allows functions and other items, from a separate module, to be
imported into the lexical namespace (as implemented by Lexical::Var), when the
exporting module exports non-lexically to a package in the traditional manner.
This is a translation layer, to help code written in the new way to use modules
written in the old way.
A lexically-imported item 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. Within its scope, any use of the single-part name of the
item (e.g., "$foo") refers directly to that item, regardless of what is in any
package. Explicitly package-qualified names (e.g., "$main::foo") still refer to
the package. There is no conflict between a lexical name definition and the same
name in any package.
This mechanism only works on Perl 5.11.2 and later. Prior to that, it is
impossible for lexical subroutine imports to work for bareword subroutine calls.
(See "BUGS" in Lexical::Var for details.) Other kinds of lexical importing are
possible on earlier Perls, but because this is such a critical kind of usage in
most code, this module will ensure that it works, for convenience. If the
limited lexical importing is desired on earlier Perls, use Lexical::Var
directly.
WWW: https://metacpan.org/release/Lexical-Import

Alternatives

Package Version Architecture Repository
p5-Lexical-Import-0.002_2.txz 0.002 i386 FreeBSD Ports Quarterly
p5-Lexical-Import-0.002_2.txz 0.002 amd64 FreeBSD Ports Quarterly
p5-Lexical-Import-0.002_2.txz 0.002 i386 FreeBSD Ports Latest
p5-Lexical-Import - - -

Requires

Name Value
libperl.so.5.28 -
p5-Lexical-Var = 0.009_2
p5-Module-Runtime = 0.016
p5-Params-Classify = 0.015
perl5 = 5.28.1_1

Download

Type URL
Mirror pkg.freebsd.org
Binary Package p5-Lexical-Import-0.002_2.txz
Source Package devel/p5-Lexical-Import

Install Howto

Install p5-Lexical-Import txz package:

# pkg install p5-Lexical-Import

See Also

Package Description
p5-Lexical-Persistence-1.023_1.txz Persistent lexical variable values for arbitrary calls
p5-Lexical-SealRequireHints-0.011.txz Perl module to prevent leakage of lexical hints
p5-Lexical-Var-0.009_2.txz Perl module for static variables without namespace pollution
p5-Lingua-Conjunction-2.00_1.txz Convert Perl lists into linguistic conjunctions
p5-Lingua-DetectCyrillic-0.02_1.txz Detects 7 Cyrillic codings as well as the language
p5-Lingua-EN-AddressParse-1.27.txz Perl module to manipulate geographical addresses
p5-Lingua-EN-Fathom-1.22.txz Measure readability of English text
p5-Lingua-EN-FindNumber-1.32.txz Locate (written) numbers in English text
p5-Lingua-EN-Gender-0.02_2,1.txz Inflect pronouns for gender
p5-Lingua-EN-Infinitive-1.14.txz Determine the infinitive form of a conjugated word
p5-Lingua-EN-Inflect-1.904.txz Convert singular words to their plural form
p5-Lingua-EN-Inflect-Number-1.12.txz Force number of words to singular or plural
p5-Lingua-EN-Inflect-Phrase-0.18_1.txz Perl extension to inflect short English Phrases
p5-Lingua-EN-MatchNames-1.36.txz Smart matching for human names
p5-Lingua-EN-NameCase-1.19.txz Perl module to fix the case of people's names
Advertisement
Advertisement