From: Father Chrysostomos Date: Fri, 7 Dec 2012 04:24:34 +0000 (-0800) Subject: perldiag: Make Constant(%s) messages match reality X-Git-Tag: upstream/5.20.0~4571 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e21e7c6ab6af8471392d97efd339f2bd51a74b45;p=platform%2Fupstream%2Fperl.git perldiag: Make Constant(%s) messages match reality We no longer have an ‘in regex’ variant (if we ever did). The Constant(%s)%s: %s represents three specific warnings, one of which doesn’t have the colon any more. It’s clearer if we list all three, especially since the one about returning undef can acciden- tally happen with ‘normal’ code (as opposed to code that fiddles with %^H entries it shouldn’t be touching). --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 5f0045b..6589ca8 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1504,18 +1504,25 @@ thread has entered cond_wait() and thus relinquished the lock. to check the return value of your socket() call? See L. -=item Constant(%s)%s: %s +=item Constant(%s): Call to &{$^H{%s}} did not return a defined value + +(F) The subroutine registered to handle constant overloading +(see L) or a custom charnames handler (see +L) returned an undefined value. + +=item Constant(%s): $^H{%s} is not defined + +(F) The parser found inconsistencies while attempting to define an +overloaded constant. Perhaps you forgot to load the corresponding +L pragma?. + +=item Constant(%s) unknown (F) The parser found inconsistencies either while attempting to define an overloaded constant, or when trying to find the character name specified in the C<\N{...}> escape. Perhaps you forgot to load the corresponding L pragma?. -=item Constant(%s)%s: %s in regex; marked by <-- HERE in m/%s/ - -(F) The parser found inconsistencies while attempting to find -the character name specified in the C<\N{...}> escape. - =item Constant is not %s reference (F) A constant value (perhaps declared using the C pragma)