develooper Front page | perl.perl5.porters | Postings from May 2013

Re: [PATCH] perldiag: Clarify that lexicals do not trigger “used only once”

Thread Previous | Thread Next
From:
Ronald J Kimball
Date:
May 18, 2013 15:34
Subject:
Re: [PATCH] perldiag: Clarify that lexicals do not trigger “used only once”
Message ID:
20130518153424.GA59623@ibughas.pair.com
On Sat, May 18, 2013 at 01:00:20PM +0200, Aristotle Pagaltzis wrote:
> diff --git a/pod/perldiag.pod b/pod/perldiag.pod
> index 2dc5514..d3cf0a8 100644
> --- a/pod/perldiag.pod
> +++ b/pod/perldiag.pod
> @@ -3083,11 +3083,13 @@ 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
> +again somehow to suppress the message.  The C<our> 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 format) are considered
> +NOTE: This warning detects package symbols that have been used only once. This
> +means lexical variables will never trigger this warnings. It also means that
> +that all of the package variables $c, @c, %c as well as *c, &c, sub c{}, c(),

s/this warnings/this warning/
s/that that/that/

Ronald

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About