Skip Menu |

This queue is for tickets about the App-Cpan CPAN distribution.

Report information
The Basics
Id: 76991
Status: resolved
Priority: 0/
Queue: App-Cpan

People
Owner: Nobody in particular
Requestors: CKEITH [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.5902
Fixed in: (no value)



Subject: Requires "use 5.10";
_expand_filename() uses the flag "p" to s/// and ${^MATCH} variable. These are not available in Perl v5.8.8: % perl -e 'my $a = "abc"; $a =~ s/a/x/p;' Bareword found where operator expected at -e line 1, near "s/a/x/p" syntax error at -e line 1, near "s/a/x/p" Execution of -e aborted due to compilation errors. % perl -v |head -2 This is perl, v5.8.8 built for i386-linux-thread-multi Solution: Add use 5.010 to App/Cpan.pm Also http://wiki.cpantesters.org/wiki/CPANAuthorNotes&version=40 indicates that the Makefile.Pl should also have: use 5.010; Thanks.
This is a critical bug in that it cannot now be installed on 5.6/5.8. Further, there are no tests that cover this code. _expand_filename() is used when checking PERL5LIB and PERLLIB, but the test suite doesn't cover this code.
App::Cpan 1.59_02 regresses things to Perl 5.6.