Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 72824
Status: open
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: EDAVIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.116
Fixed in: (no value)



Subject: ProhibitReusedNames does not catch 'foreach my $x'
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 179
Download (untitled) / with headers
text/plain 179b
Test program: my ($x, $y); foreach my $y () {} my $x; Checking this with % perlcritic --single-policy Variables::ProhibitReusedNames testprog warns about $x but not about $y.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-6895-1322618491-1057.72824-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 490
Download (untitled) / with headers
text/plain 490b
On Tue Nov 29 17:09:36 2011, EDAVIS wrote: Show quoted text
> Test program: > > my ($x, $y); > foreach my $y () {} > my $x; > > Checking this with > > % perlcritic --single-policy Variables::ProhibitReusedNames testprog > > warns about $x but not about $y.
This looks to me like a duplicate of 65220. Note to whoever works on this: take into account 65232 (Faster rewrite of Variables::ProhibitReusedNames). Wonder if there is any synergy with 64929, which is about Variables::ProhibitUnusedVariables?


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.