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
$a and $b should be exempt from "used only once" warnings. #13402
Comments
From daoswald@gmail.comSample code: ~$ perl -MList::MoreUtils=pairwise -wE 'say for pairwise { $a + $b } Output: Name "main::b" used only once: possible typo at -e line 1. "sort" is already exempt from "used only once" warnings, because it's Such an exemption is unlikely to allow bugs to slip into peoples code. This issue is a problem for List::MoreUtils, List::BinarySearch, or The only reason that List::Util::reduce doesn't suffer from the issue ${caller."::a"}=${caller."::a"}; ...which really seems to code smell to me, and is only effective if Rather than forcing module authors to play this sort of trick, or Output from perl -V: davido@catalina:~$ perl -V Platform: Characteristics of this binary (from libperl): -- David Oswald |
From @cpansproutI realised this was easier than I thought, so I went ahead and did this in commit ea23863. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#120462 (status was 'resolved')
Searchable as RT120462$
The text was updated successfully, but these errors were encountered: