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'
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.
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?