X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fpod2text.PL;h=a978f717ad663a3fd0845f22df30a369aef37940;hb=8f20275887caedc32e165a1aa9890f861054dd9a;hp=785a3f393f3333efd3f81339066fdded2b7929d4;hpb=b7ae008f237ac1d94314836a23dc578e678c9243;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/pod2text.PL b/pod/pod2text.PL index 785a3f3..a978f71 100644 --- a/pod/pod2text.PL +++ b/pod/pod2text.PL @@ -37,7 +37,7 @@ print OUT <<'!NO!SUBS!'; # pod2text -- Convert POD data to formatted ASCII text. # -# Copyright 1999, 2000, 2001 by Russ Allbery +# Copyright 1999, 2000, 2001, 2004, 2006 by Russ Allbery # # This program is free software; you may redistribute it and/or modify it # under the same terms as Perl itself. @@ -99,11 +99,10 @@ if ($options{color}) { delete @options{'color', 'termcap', 'overstrike'}; # Initialize and run the formatter. +my $parser = $formatter->new (%options); do { - my $parser = $formatter->new (%options); my ($input, $output) = splice (@ARGV, 0, 2); - $parser->parse_file ($input, $output); - undef $parser; + $parser->parse_from_file ($input, $output); } while (@ARGV); __END__ @@ -273,7 +272,7 @@ Russ Allbery . =head1 COPYRIGHT AND LICENSE -Copyright 1999, 2000, 2001, 2004 by Russ Allbery . +Copyright 1999, 2000, 2001, 2004, 2006 by Russ Allbery . This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.