From: Rafael Garcia-Suarez Date: Thu, 6 Jul 2006 16:35:37 +0000 (+0000) Subject: Error in the formulation of the new warning, spotted by Dominic Dunlop X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=058cbdf29801a8d93ccfce9e13fe10af6f37109c;p=p5sagit%2Fp5-mst-13.2.git Error in the formulation of the new warning, spotted by Dominic Dunlop p4raw-id: //depot/perl@28497 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index d9aa877..1dea485 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3750,7 +3750,7 @@ happened.) See L. (W misc) You're declaring a C variable inside a list. The list assignment will be treated by perl as a regular assignment, which means that the C 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;