summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-03-13 16:41:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-03-13 16:41:05 +0000
commit48554fed977d9890312e3803915c54b9fea4bc3b (patch)
treebd9c2cc671259a1b0529c884d7696e9cf23f036c /pod
parentc32cefca8d1fa098713fa6b786d0ca9b7fe09b1d (diff)
downloadperl-48554fed977d9890312e3803915c54b9fea4bc3b.tar.gz
Upgrade to Pod::Parser 1.30
p4raw-id: //depot/perl@24034
Diffstat (limited to 'pod')
-rw-r--r--pod/pod2usage.PL5
-rw-r--r--pod/podselect.PL5
2 files changed, 6 insertions, 4 deletions
diff --git a/pod/pod2usage.PL b/pod/pod2usage.PL
index 1b14c1777c..ae4aaba93b 100644
--- a/pod/pod2usage.PL
+++ b/pod/pod2usage.PL
@@ -15,8 +15,9 @@ use Cwd;
# This is so that make depend always knows where to find PL derivatives.
$origdir = cwd;
chdir(dirname($0));
-$file = basename($0, '.PL');
-$file .= '.com' if $^O eq 'VMS';
+($file = basename($0)) =~ s/\.PL$//;
+$file =~ s/\.pl$// if ($^O eq 'os2' or $^O eq 'dos'); # "case-forgiving"
+$file =~ s/\.pl$/.com/ if ($^O eq 'VMS'); # "case-forgiving"
open OUT,">$file" or die "Can't create $file: $!";
diff --git a/pod/podselect.PL b/pod/podselect.PL
index 138e076146..7022fd2630 100644
--- a/pod/podselect.PL
+++ b/pod/podselect.PL
@@ -15,8 +15,9 @@ use Cwd;
# This is so that make depend always knows where to find PL derivatives.
$origdir = cwd;
chdir(dirname($0));
-$file = basename($0, '.PL');
-$file .= '.com' if $^O eq 'VMS';
+($file = basename($0)) =~ s/\.PL$//;
+$file =~ s/\.pl$// if ($^O eq 'os2' or $^O eq 'dos'); # "case-forgiving"
+$file =~ s/\.pl$/.com/ if ($^O eq 'VMS'); # "case-forgiving"
open OUT,">$file" or die "Can't create $file: $!";