I'm using this via Dist-Zilla-Plugin-UnusedVarsTests. Which complains
about an unused my $_; however $_ is not unused it's just that all
instances of it in the subroutine are implied.
sub something {
my $_;
my @array = ...;
while ( @array ) {
say;
}
}
UnusedVarsTests would fail in this case even though technically $_ is
being used on say.
Transferred from rt.cpan.org ...
Original Ticket Information
Original Text
I'm using this via Dist-Zilla-Plugin-UnusedVarsTests. Which complains about an unused my
$_
; however$_
is not unused it's just that all instances of it in the subroutine are implied.UnusedVarsTests would fail in this case even though technically
$_
is being used onsay
.Follow-Up Report
oh some further discussion I had on StackOverflow