summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-02-04 17:15:28 +0000
committerDavid Mitchell <davem@iabyn.com>2017-02-18 12:47:38 +0000
commitac7609e4a8cf90d4a873cf5753face7d2c5f3976 (patch)
tree4b2eb6b86b6a0c313c98296603c2a5337fc33f0b /pod/perldiag.pod
parent19742f39bfbfba7529a49232271b390bc4e811cb (diff)
downloadperl-ac7609e4a8cf90d4a873cf5753face7d2c5f3976.tar.gz
Show sub name in signature arity-check error messages
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod17
1 files changed, 14 insertions, 3 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 99da61ec1f..390ba81e09 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4232,13 +4232,17 @@ the braces.
(4294967295) and therefore non-portable between systems. See
L<perlport> for more on portability concerns.
-=item Odd name/value argument for subroutine
+=item Odd name/value argument for subroutine '%s'
(F) A subroutine using a slurpy hash parameter in its signature
received an odd number of arguments to populate the hash. It requires
the arguments to be paired, with the same number of keys as values.
The caller of the subroutine is presumably at fault.
+The message attempts to include the name of the called subroutine. If the
+subroutine has been aliased, the subroutine's original name will be shown,
+regardless of what name the caller used.
+
=item Odd number of arguments for overload::constant
(W overload) The call to overload::constant contained an odd number of
@@ -6081,12 +6085,16 @@ See L<perlunicode/"User-Defined Character Properties">.
(F) There has to be at least one argument to syscall() to specify the
system call to call, silly dilly.
-=item Too few arguments for subroutine
+=item Too few arguments for subroutine '%s'
(F) A subroutine using a signature received too few arguments than
required by the signature. The caller of the subroutine is presumably
at fault.
+The message attempts to include the name of the called subroutine. If the
+subroutine has been aliased, the subroutine's original name will be shown,
+regardless of what name the caller used.
+
=item Too late for "-%s" option
(X) The #! line (or local equivalent) in a Perl script contains the
@@ -6117,12 +6125,15 @@ BEGIN block.
(F) The function requires fewer arguments than you specified.
-=item Too many arguments for subroutine
+=item Too many arguments for subroutine '%s'
(F) A subroutine using a signature received too many arguments than
required by the signature. The caller of the subroutine is presumably
at fault.
+The message attempts to include the name of the called subroutine. If the
+subroutine has been aliased, the subroutine's original name will be shown,
+regardless of what name the caller used.
=item Too many )'s