diff options
Diffstat (limited to 'pod/pod2latex.PL')
-rw-r--r-- | pod/pod2latex.PL | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pod/pod2latex.PL b/pod/pod2latex.PL index 4f79c1297f..9702614ffa 100644 --- a/pod/pod2latex.PL +++ b/pod/pod2latex.PL @@ -12,10 +12,8 @@ use File::Basename qw(&basename &dirname); # This forces PL files to create target in same directory as PL file. # This is so that make depend always knows where to find PL derivatives. -chdir(dirname($0)); -($file = basename($0)) =~ s/\.PL$//; -$file =~ s/\.pl$// - if ($^O eq 'VMS' or $^O eq 'os2'); # "case-forgiving" +chdir dirname($0); +$file = basename($0, '.PL'); open OUT,">$file" or die "Can't create $file: $!"; |