miyagawa/cpanminus — Issue #133: backslash related issue on MS Windows platform
Author: kmx
Created: 2011-11-15 21:29:30+00:00
State: open

Hi,

when running (on my Win7 box with Strawberry Perl):
cpanm -i YAML::XS --verbose

the installation succeeds but the last message is (visible only with verbose)

...
Appending installation info to C:\strawberry\perl\lib/perllocal.pod
OK
Successfully reinstalled YAML-LibYAML-0.37
Backslash found where operator expected at -e line 1, near "strawberry\"
Backslash found where operator expected at -e line 1, near "perl\"
Backslash found where operator expected at -e line 1, near "site\"
syntax error at -e line 1, near "C:"
Execution of -e aborted due to compilation errors.
1 distribution installed

The patch to fix this is as simple as this:

- qq[install({ 'blib/meta' => "$base/$Config{archname}/.meta/$dist->{distvname}" })],
+ qq[install({ 'blib/meta' => '$base/$Config{archname}/.meta/$dist->{distvname}' })],

--kmx