summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 8cc2945336..e41c29939a 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -194,6 +194,13 @@ could indicate that SvREFCNT_dec() was called too many times, or that
SvREFCNT_inc() was called too few times, or that the SV was mortalized
when it shouldn't have been, or that memory has been corrupted.
+=item Attempt to use reference as hash key
+
+(W) References as not very meaningful as hash keys. You probably forgot to
+dereference the reference before using it in a hash list, or got mixed up
+and used C<{}> or C<[]> instead of C<()>. Or perhaps a missing key in the
+hash list is causing values to be treated as keys.
+
=item Bad arg length for %s, is %d, should be %d
(F) You passed a buffer of the wrong size to one of msgctl(), semctl() or