develooper Front page | perl.perl5.porters | Postings from March 2014

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

Thread Previous | Thread Next
From:
Karl Williamson
Date:
March 10, 2014 21:52
Subject:
Re: [PATCH] perldiag: Clarify that lexicals do not trigger “used only once”
Message ID:
531E25E1.8090506@khwilliamson.com
On 05/18/2013 09:34 AM, Ronald J Kimball wrote:
> 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
>

This patch no longer applies to blead.  If you rebase it and resubmit, I 
will apply it.


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