This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1755228
)
"state" in perlfunc should point to "Persistent Private Variables"
author
Vincent Pit
<perl@profvince.com>
Sat, 10 Sep 2011 13:20:55 +0000
(15:20 +0200)
committer
Vincent Pit
<perl@profvince.com>
Sat, 10 Sep 2011 13:20:55 +0000
(15:20 +0200)
pod/perlfunc.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfunc.pod
b/pod/perlfunc.pod
index
981032b
..
84e271e
100644
(file)
--- a/
pod/perlfunc.pod
+++ b/
pod/perlfunc.pod
@@
-6775,10
+6775,11
@@
C<state> declares a lexically scoped variable, just like C<my>.
However, those variables will never be reinitialized, contrary to
lexical variables that are reinitialized each time their enclosing block
is entered.
+See L<perlsub/"Persistent Private Variables"> for details.
C<state> variables are enabled only when the C<use feature "state"> pragma
is in effect, unless the keyword is written as C<CORE::state>.
-See L<feature>.
+See
also
L<feature>.
=item study SCALAR
X<study>