summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-02-13 21:56:52 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-02-13 21:56:52 -0800
commite850844c70e877ddb73171e20c9e78f2673117a2 (patch)
tree80d873647554d06d09bfd005596665257e07a84c /toke.c
parentd32207c9fde2dae3f943cff7b308d59eef63e106 (diff)
downloadperl-e850844c70e877ddb73171e20c9e78f2673117a2.tar.gz
perldiag: retitle Ambiguous use of %c{%s%s}
This is not very helpful: =item Ambiguous use of %c{%s%s} resolved to %c%s%s especially since it is functionally identical to the previous entry: =item Ambiguous use of %c{%s} resolved to %c%s Not only can diagnostics.pm never find it, but it is hard for human beings to understand what the different is at first glance, too. So filling in the second and fourth %s’s with the two possible values slays a twain of avians with one piece of petrified matter.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 113632eba7..a2fba3cae9 100644
--- a/toke.c
+++ b/toke.c
@@ -8702,6 +8702,7 @@ S_scan_ident(pTHX_ register char *s, register const char *send, char *dest, STRL
const char * const brack =
(const char *)
((*s == '[') ? "[...]" : "{...}");
+ /* diag_listed_as: Ambiguous use of %c{%s[...]} resolved to %c%s[...] */
Perl_warner(aTHX_ packWARN(WARN_AMBIGUOUS),
"Ambiguous use of %c{%s%s} resolved to %c%s%s",
funny, dest, brack, funny, dest, brack);