X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fcheckpods.PL;h=ccd78ec9cf09959d49871e381667ad90027fd623;hb=5d3b0638f4c2cf44af3831abe68fc08048b89bc2;hp=c4721a61182cb73ce8ddf6752626ff72b6ad520c;hpb=44a8e56aa037ed0f03f0506f6f85f5ed290c78e1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/checkpods.PL b/pod/checkpods.PL index c4721a6..ccd78ec 100644 --- a/pod/checkpods.PL +++ b/pod/checkpods.PL @@ -14,6 +14,7 @@ use File::Basename qw(&basename &dirname); # This is so that make depend always knows where to find PL derivatives. chdir dirname($0); $file = basename($0, '.PL'); +$file .= '.com' if $^O eq 'VMS'; open OUT,">$file" or die "Can't create $file: $!"; @@ -61,7 +62,10 @@ while (<>) { $exit = 1; } $last_blank = /^\s+$/; - close(ARGV) if eof; + if (eof) { + close(ARGV); + $last_blank = 0; + } } exit $exit !NO!SUBS!