aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Lexical-Var/pkg-descr
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-03-13 17:21:06 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2012-03-13 17:21:06 +0000
commit3c558e3cd7b894a1d4cf4e13a248ee1fa4ea4608 (patch)
treef19b4260ee38eaadd6730c9615e210a86523f446 /devel/p5-Lexical-Var/pkg-descr
parent5c8b150181a1887eaca00a18bbb647f8344e621d (diff)
downloadports-3c558e3cd7b894a1d4cf4e13a248ee1fa4ea4608.tar.gz
ports-3c558e3cd7b894a1d4cf4e13a248ee1fa4ea4608.zip
Notes
Diffstat (limited to 'devel/p5-Lexical-Var/pkg-descr')
-rw-r--r--devel/p5-Lexical-Var/pkg-descr14
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/