summaryrefslogtreecommitdiff
path: root/utils/pl2pm.PL
diff options
context:
space:
mode:
Diffstat (limited to 'utils/pl2pm.PL')
-rw-r--r--utils/pl2pm.PL6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/pl2pm.PL b/utils/pl2pm.PL
index 60e66f824d..8d47481341 100644
--- a/utils/pl2pm.PL
+++ b/utils/pl2pm.PL
@@ -25,9 +25,9 @@ print "Extracting $file (with variable substitutions)\n";
# You can use $Config{...} to use Configure variables.
print OUT <<"!GROK!THIS!";
-$Config{'startperl'}
- eval 'exec perl -S \$0 "\$@"'
- if 0;
+$Config{startperl}
+ eval 'exec $Config{perlpath} -S \$0 \${1+"\$@"}'
+ if \$running_under_some_shell;
!GROK!THIS!
# In the following, perl variables are not expanded during extraction.