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
commitd5c61f7c3478189627500a82494061b415064f59 (patch)
treebd9c2cc671259a1b0529c884d7696e9cf23f036c /pod
parent719b43e8a7892cfc854b9123fcad88c53828b0b9 (diff)
downloadperl-d5c61f7c3478189627500a82494061b415064f59.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: $!";