Closed HackOrQuack closed 10 years ago
@HackOrQuack thanks a lot for mentioning this -- I believe the difference in the line numbers is because the installed version of the files will have a few extra lines of text added to them thanks to DZIL -- If you compare the first few lines you'll see some extra info about the installed version that looks like this:
BEGIN {
$App::DuckPAN::Web::AUTHORITY = 'cpan:DDG';
}
# ABSTRACT: Webserver for duckpan server
$App::DuckPAN::Web::VERSION = '0.137';
Btw, what version of Perl are you using? We test with 5.10, 5.14 and 5.16 and we use 5.16 regularly. I'm not seeing that warning but it does look like using keys
on references was introduced in 5.14 -- I'll switch to 5.14 and see what happens...
Nothing with 5.14, or 5.18, trying 5.21...
I'm using perl 5.20.0-5 it's the latest version available from the arch repositories.
Couldn't replicate with 5.21 either, I'll try 5.20 now... not that it should matter, but are you running this in the Goodie or Spice repo?
I'm running it with the Spice repo.
Perl 5.20 now shows a warning for this and it looks like we have to fix it. See https://metacpan.org/source/RJBS/perl-5.20.0/pod/perldiag.pod#L2708 for the documentation.
Some projects have started to fix it, too: https://github.com/taunger/Config-Source/blob/master/Changes#L9
It's now treated as a severe warning (S) A severe warning (enabled by default).
@jagtalon thanks for finding that -- really odd that it didn't occur in 5.21, I didn't get around to testing 5.20 but will try and confirm, then fix
Made a PR ^, should be good now :). Thanks again for reporting this @HackOrQuack
Whenever I run
duckpan server
I recieve the following errors:Although I have the most up to date version available of App::DuckPAN from cpanm my local files are very slightly different to those here on github.
Line 360 of Web.pm refers to:
which is line 357 of the current github version (44c1aac)
Line 167 of Web.pm refers to:
which is line 164 of the current github version (e1378ec)
I'm running Arch linux