diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-01 13:59:24 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-09-01 13:59:24 +0000 |
commit | 6ad11d816f7ada926c1680f01c87123df5950886 (patch) | |
tree | 98c703613af00966187f306583196bb0da9194cc | |
parent | 4498a7519cc524cb875be9ce1d6a4bda5940beeb (diff) | |
download | perl-6ad11d816f7ada926c1680f01c87123df5950886.tar.gz |
Add the overload warnings to perldiag.
p4raw-id: //depot/perl@6971
-rw-r--r-- | lib/overload.pm | 2 | ||||
-rw-r--r-- | pod/perldiag.pod | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lib/overload.pm b/lib/overload.pm index b9c9ce74b7..6b1b82f5d0 100644 --- a/lib/overload.pm +++ b/lib/overload.pm @@ -1354,7 +1354,7 @@ key (in fact a presence of this method shows that this package has overloading enabled, and it is what is used by the C<Overloaded> function of module C<overload>). -The module might issues the following warnings: +The module might issue the following warnings: =over 4 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, |