summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-11 16:54:00 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-11 16:54:00 +0000
commitb5b61777757fec0af8ae5708e94d1089558c3513 (patch)
tree211463d330ae3ee65b553cffd5fab616e2f6cab1 /pod
parente77cf69f69c718be579e56562724518750ab0766 (diff)
downloadperl-b5b61777757fec0af8ae5708e94d1089558c3513.tar.gz
Reapply change #20983, rolled back by change #22920,
as noticed by Craig Berry. p4raw-link: @22920 on //depot/perl: 7d8277e26ba3dacb5d0719896027eea95e497496 p4raw-link: @20983 on //depot/perl: 0e9de459b923410f2c7af3887364c6d4cd0df24e p4raw-id: //depot/perl@22931
Diffstat (limited to 'pod')
-rw-r--r--pod/pod2usage.PL5
-rw-r--r--pod/podselect.PL5
2 files changed, 4 insertions, 6 deletions
diff --git a/pod/pod2usage.PL b/pod/pod2usage.PL
index ae4aaba93b..1b14c1777c 100644
--- a/pod/pod2usage.PL
+++ b/pod/pod2usage.PL
@@ -15,9 +15,8 @@ use Cwd;
# This is so that make depend always knows where to find PL derivatives.
$origdir = cwd;
chdir(dirname($0));
-($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"
+$file = basename($0, '.PL');
+$file .= '.com' if $^O eq 'VMS';
open OUT,">$file" or die "Can't create $file: $!";
diff --git a/pod/podselect.PL b/pod/podselect.PL
index 7022fd2630..138e076146 100644
--- a/pod/podselect.PL
+++ b/pod/podselect.PL
@@ -15,9 +15,8 @@ use Cwd;
# This is so that make depend always knows where to find PL derivatives.
$origdir = cwd;
chdir(dirname($0));
-($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"
+$file = basename($0, '.PL');
+$file .= '.com' if $^O eq 'VMS';
open OUT,">$file" or die "Can't create $file: $!";