summaryrefslogtreecommitdiff
path: root/pod/pod2text.PL
diff options
context:
space:
mode:
Diffstat (limited to 'pod/pod2text.PL')
-rw-r--r--pod/pod2text.PL6
1 files changed, 3 insertions, 3 deletions
diff --git a/pod/pod2text.PL b/pod/pod2text.PL
index 49198078c0..033a0d8f55 100644
--- a/pod/pod2text.PL
+++ b/pod/pod2text.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.