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.