X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fpod2latex.PL;h=3d0b55b32f999ab6afb73126f60535b101ef2cfe;hb=4fc194b2052979cb8d28873cf62c0ce84cd214f5;hp=4f79c1297fec12fb7fd1d31d7ac98a7cc479f7a6;hpb=8c634b6ed8dff69ce029df1386a301fb7f8b3062;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/pod2latex.PL b/pod/pod2latex.PL index 4f79c12..3d0b55b 100644 --- a/pod/pod2latex.PL +++ b/pod/pod2latex.PL @@ -12,10 +12,9 @@ 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'); +$file .= '.com' if $^O eq 'VMS'; open OUT,">$file" or die "Can't create $file: $!";