diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-09 13:13:29 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-09 13:13:29 +0000 |
commit | 7d8277e26ba3dacb5d0719896027eea95e497496 (patch) | |
tree | e9383321a735b202e11f0033cd47682b8854146d /pod/podselect.PL | |
parent | 1d69df2bf087d7ee3a9ecf4ad5d83ad461d6e51e (diff) | |
download | perl-7d8277e26ba3dacb5d0719896027eea95e497496.tar.gz |
Upgrade to Pod::Parser 1.28
(except Pod::Find, which has local patches not yet on CPAN)
p4raw-id: //depot/perl@22920
Diffstat (limited to 'pod/podselect.PL')
-rw-r--r-- | pod/podselect.PL | 5 |
1 files changed, 3 insertions, 2 deletions
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: $!"; |