diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-03-13 17:21:06 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2012-03-13 17:21:06 +0000 |
commit | 3c558e3cd7b894a1d4cf4e13a248ee1fa4ea4608 (patch) | |
tree | f19b4260ee38eaadd6730c9615e210a86523f446 /devel/p5-Lexical-Var/pkg-descr | |
parent | 5c8b150181a1887eaca00a18bbb647f8344e621d (diff) | |
download | ports-3c558e3cd7b894a1d4cf4e13a248ee1fa4ea4608.tar.gz ports-3c558e3cd7b894a1d4cf4e13a248ee1fa4ea4608.zip |
Notes
Diffstat (limited to 'devel/p5-Lexical-Var/pkg-descr')
-rw-r--r-- | devel/p5-Lexical-Var/pkg-descr | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/devel/p5-Lexical-Var/pkg-descr b/devel/p5-Lexical-Var/pkg-descr index 132f7e25ba33..0ea2ceb5ed00 100644 --- a/devel/p5-Lexical-Var/pkg-descr +++ b/devel/p5-Lexical-Var/pkg-descr @@ -1,3 +1,15 @@ Perl module for static variables without namespace pollution -WWW: http://search.cpan.org/dist/Lexical-Var/ +Lexical::Var and Lexical::Sub implement lexical scoping of static variables and +subroutines. Although it can be used directly, it is mainly intended to be +infrastructure for modules that export particular objects. + +Lexical::Var 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. + +Lexical::Sub is implemented through the mechanism of Lexical::Var. Its distinct +name and declaration syntax exist to make lexical subroutine declarations +clearer. + +WWW: http://search.cpan.org/dist/Lexical-Var/ |