X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=utils%2Fperldoc.PL;h=7dc478b4e78e10b1d408dcbe3344ed2544ced61a;hb=fcbfa962e80dc16f8db1afaeb5287e8a393d3942;hp=2ab918b1560c490717e66e10cb41fe535d392d36;hpb=44e4e192b238c3cc893c2e7269159906cf99c1b9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/utils/perldoc.PL b/utils/perldoc.PL index 2ab918b..7dc478b 100644 --- a/utils/perldoc.PL +++ b/utils/perldoc.PL @@ -313,7 +313,9 @@ sub printout { my $err; if ($opt_t) { - Pod::Text->new()->parse_from_file($file,$tmp); + open(OUT,">>$tmp") or warn("Can't open $tmp: $!"), return; + Pod::Text->new()->parse_from_file($file,\*OUT); + close OUT; } elsif (not $opt_u) { my $cmd = "pod2man --lax $file | nroff -man";