This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate change #9533 from maintperl into mainline.
[perl5.git] / x2p / find2perl.PL
index b89f01e..adcf42a 100644 (file)
@@ -29,7 +29,9 @@ print OUT <<"!GROK!THIS!";
 $Config{startperl}
     eval 'exec $Config{perlpath} -S \$0 \${1+"\$@"}'
       if \$running_under_some_shell;
-my \$perlpath = '$Config{perlpath}';
+(my \$perlpath = <<'/../') =~ s/\\s*\\z//;
+$Config{perlpath}
+/../
 !GROK!THIS!
 
 # In the following, perl variables are not expanded during extraction.