From: Christian Walde Date: Wed, 12 Jun 2013 12:16:02 +0000 (+0200) Subject: os-dependent quotes for the @INC retrieval call in FatNode X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=commitdiff_plain;h=21c3ca786c817f80ab88f11468015c0761090aa4 os-dependent quotes for the @INC retrieval call in FatNode --- diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index 1b7c659..c1d5400 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -19,6 +19,7 @@ my %maybe_libs = map +($_ => 1), grep defined, (values %Config, '.'); my @extra_libs = grep not(ref($_) or $maybe_libs{$_}), @INC; my $extra_libs = join '', map " -I$_\n", @extra_libs; +my $perl_quote = $^O eq "MSWin32" ? q["] : q[']; my $command = qq( $^X @@ -35,7 +36,7 @@ my $command = qq( -mMethod::Generate::BuildAll -mMethod::Generate::DemolishAll -mJSON::PP - -e 'print join "\\n", \%INC' + -e $perl_quote print join qq[\\n], \%INC $perl_quote ); $command =~ s/\n/ /g;