summaryrefslogtreecommitdiff
path: root/pod/pod2usage.PL
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/pod2usage.PL
parent719b43e8a7892cfc854b9123fcad88c53828b0b9 (diff)
downloadperl-d5c61f7c3478189627500a82494061b415064f59.tar.gz
Upgrade to Pod::Parser 1.30
p4raw-id: //depot/perl@24034
Diffstat (limited to 'pod/pod2usage.PL')
-rw-r--r--pod/pod2usage.PL5
1 files changed, 3 insertions, 2 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: $!";