In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/08a33b6b0b73cadc9417b2e9e278d4bf6db28233?hp=4e56b5b96e186b4dac180dc79cdb51d373a215e6>
- Log ----------------------------------------------------------------- commit 08a33b6b0b73cadc9417b2e9e278d4bf6db28233 Author: Aristotle Pagaltzis <[email protected]> Date: Tue Mar 11 01:57:19 2014 +0100 perldiag: Clarify that lexicals do not trigger "used only once" ----------------------------------------------------------------------- Summary of changes: pod/perldiag.pod | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 69d9622..5482684 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -3223,10 +3223,12 @@ local() if you want to localize a package variable. (W once) Typographical errors often show up as unique variable names. If you had a good reason for having a unique name, then just mention it again somehow to suppress the message. The C<our> -declaration is provided for this purpose. +declaration is also provided for this purpose. -NOTE: This warning detects symbols that have been used only once -so $c, @c, %c, *c, &c, sub c{}, c(), and c (the filehandle or +NOTE: This warning detects package symbols that have been used only +once. This means lexical variables will never trigger this warning. +It also means that all of the package variables $c, @c, %c, as well +as *c, &c, sub c{}, c(), and c (the filehandle or format) are considered the same; if a program uses $c only once but also uses any of the others it will not trigger this warning. Symbols beginning with an underscore and symbols using special -- Perl5 Master Repository
