diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-02-13 21:56:52 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-02-13 21:56:52 -0800 |
commit | e850844c70e877ddb73171e20c9e78f2673117a2 (patch) | |
tree | 80d873647554d06d09bfd005596665257e07a84c /toke.c | |
parent | d32207c9fde2dae3f943cff7b308d59eef63e106 (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |