summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-04-24 10:31:28 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-04-24 10:31:28 +0000
commitb708784ed29bddb36a466db5f726fe7b7635e19b (patch)
tree92a122ed8f06a2782dcf5b8db39a49b27343fddb /pod/perldiag.pod
parent0d746ee5c1be80219aec2680f655ad5be66ccdf0 (diff)
downloadperl-b708784ed29bddb36a466db5f726fe7b7635e19b.tar.gz
Remove the code that handles assignment to state variables
p4raw-id: //depot/perl@31049
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod10
1 files changed, 0 insertions, 10 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 6285c71fc4..1ba0c46fd0 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -3902,16 +3902,6 @@ L<perlfunc/splice>.
iterate more times than there are characters of input, which is what
happened.) See L<perlfunc/split>.
-=item State variable %s will be reinitialized
-
-(W misc) You're declaring a C<state> variable inside a list. The list
-assignment will be treated by perl as a regular assignment, which means
-that the C<state> variable will be reinitialized each time the statement
-is run. The solution to have it initialized only once is to write the
-assignment on its own line, as in:
-
- state $var = 42;
-
=item Statement unlikely to be reached
(W exec) You did an exec() with some statement after it other than a