summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-09-01 13:59:24 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-09-01 13:59:24 +0000
commit6ad11d816f7ada926c1680f01c87123df5950886 (patch)
tree98c703613af00966187f306583196bb0da9194cc /pod/perldiag.pod
parent4498a7519cc524cb875be9ce1d6a4bda5940beeb (diff)
downloadperl-6ad11d816f7ada926c1680f01c87123df5950886.tar.gz
Add the overload warnings to perldiag.
p4raw-id: //depot/perl@6971
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod15
1 files changed, 15 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 20cc02723e..27711f5416 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1713,6 +1713,16 @@ silently ignored.
(F) Your machine apparently doesn't implement ioctl(), which is pretty
strange for a machine that supports C.
+=item `%s' is not a code reference
+
+(W) The second (fourth, sixth, ...) argument of overload::constant needs
+to be a code reference. Either an anonymous subroutine, or a reference
+to a subroutine.
+
+=item `%s' is not an overloadable type
+
+(W) You tried to overload a constant type the overload package is unaware of.
+
=item junk on end of regexp
(P) The regular expression parser is confused.
@@ -2236,6 +2246,11 @@ L<perlport> for more on portability concerns.
See also L<perlport> for writing portable code.
+=item Odd number of arguments for overload::constant
+
+(W) The call to overload::constant contained an odd number of arguments.
+The arguments should come in pairs.
+
=item Odd number of elements in hash assignment
(W misc) You specified an odd number of elements to initialize a hash,