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

duplicate 'my $uri' #410

Closed
gregoa opened this issue Apr 25, 2022 · 0 comments · Fixed by #411
Closed

duplicate 'my $uri' #410

gregoa opened this issue Apr 25, 2022 · 0 comments · Fixed by #411

Comments

@gregoa
Copy link

gregoa commented Apr 25, 2022

In today's 6.63 there's a duplicate variable declaration in lib/LWP/UserAgent.pm which causes a warning:

% PERL5LIB=lib perl -w -MLWP -e1
"my" variable $uri masks earlier declaration in same scope at lib/LWP/UserAgent.pm line 783.

The first one is not far away :)

   781                          my $uri = URI->new_abs($url, $res->request->uri)->canonical;
   782                          my $base = $res->request->uri;
   783                          my $uri = $base->new_abs($url, $base);

Cheers,
gregor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant