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