From: Gurusamy Sarathy Date: Tue, 26 May 1998 17:20:22 +0000 (+0000) Subject: [win32] remove doubled hunk (perforce auto-integrate oddity) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=45d140eb7935a70b2ef9065a66f6ff460b0014e8;p=p5sagit%2Fp5-mst-13.2.git [win32] remove doubled hunk (perforce auto-integrate oddity) p4raw-id: //depot/win32/perl@1034 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 93d0f3d..b23dcc5 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -2070,18 +2070,6 @@ to use parens. In any case, a hash requires key/value B. %hash = ( one => 1, two => 2, ); # right %hash = qw( one 1 two 2 ); # also fine -=item Reference found where even-sized list expected - -(W) You gave a single reference where Perl was expecting a list with -an even number of elements (for assignment to a hash). This -usually means that you used the anon hash constructor when you meant -to use parens. In any case, a hash requires key/value B. - - %hash = { one => 1, two => 2, }; # WRONG - %hash = [ qw/ an anon array / ]; # WRONG - %hash = ( one => 1, two => 2, ); # right - %hash = qw( one 1 two 2 ); # also fine - =item Reference miscount in sv_replace() (W) The internal sv_replace() function was handed a new SV with a