summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-06 16:35:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-06 16:35:37 +0000
commit058cbdf29801a8d93ccfce9e13fe10af6f37109c (patch)
tree42aec6eae5a65d7c53b785bc27d7c7d409dee74a
parent53fdf963570d8de6e113571512f8002a3597d780 (diff)
downloadperl-058cbdf29801a8d93ccfce9e13fe10af6f37109c.tar.gz
Error in the formulation of the new warning, spotted by Dominic Dunlop
p4raw-id: //depot/perl@28497
-rw-r--r--pod/perldiag.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index d9aa877a30..1dea4859e7 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -3750,7 +3750,7 @@ happened.) See L<perlfunc/split>.
(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 twice is to write the
+is run. The solution to have it initialized only once is to write the
assignment on its own line, as in:
state $var = 42;