Subject: | ->parse_from_file does not work as advertised with ->output_string(\my $html) |
The example here: http://search.cpan.org/~dwheeler/Pod-Simple-
3.15/lib/Pod/Simple/HTML.pm#Minimal_code
Doesn't work. $p->parse_from_file($file) will *not* parse into the $html
variable, but simply emit the HTML to standard out.
What does work is:
cat $(perldoc -l strict) | perl -MPod::Simple::HTML -wle 'my $html; my $p
= Pod::Simple::HTML->new; $p->output_string(\$html); $p-
Show quoted text
>parse_string_document(join "", <>); print $html'
I.e. using ->parse_string_document() instead of ->parse_file().
Pod::Simple::XHTML has the same bug.