Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with implied variable usage (RT 60018) #56

Open
jkeenan opened this issue Sep 12, 2024 · 0 comments
Open

doesn't work with implied variable usage (RT 60018) #56

jkeenan opened this issue Sep 12, 2024 · 0 comments
Labels

Comments

@jkeenan
Copy link
Collaborator

jkeenan commented Sep 12, 2024

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.

sub something {
    my $_;
    my @array = ...;
    while ( @array ) {
        say;
    }
}

UnusedVarsTests would fail in this case even though technically $_ is
being used on say.

Follow-Up Report

oh some further discussion I had on StackOverflow

@jkeenan jkeenan changed the title doesn't work with implied variable usage doesn't work with implied variable usage (RT 60018) Sep 12, 2024
@jkeenan jkeenan added the Bug label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant