This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
undo pod utilities regression in 24034
authorCraig A. Berry <craigberry@mac.com>
Fri, 29 Apr 2005 17:22:48 +0000 (12:22 -0500)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 2 May 2005 08:09:38 +0000 (08:09 +0000)
From: "Craig A. Berry" <craigberry@mac.com>
Message-ID: <4272B3B8.6030603@mac.com>

p4raw-id: //depot/perl@24359

pod/pod2usage.PL
pod/podselect.PL

index ae4aaba..1b14c17 100644 (file)
@@ -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: $!";
 
index 7022fd2..138e076 100644 (file)
@@ -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: $!";