From 48554fed977d9890312e3803915c54b9fea4bc3b Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Sun, 13 Mar 2005 16:41:05 +0000 Subject: Upgrade to Pod::Parser 1.30 p4raw-id: //depot/perl@24034 --- pod/pod2usage.PL | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pod/pod2usage.PL') 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: $!"; -- cgit v1.2.1