$Doctype_decl $Content_decl
);
@ISA = ('Pod::Simple::PullParser');
-$VERSION = '3.15';
+$VERSION = '3.16';
BEGIN {
if(defined &DEBUG) { } # no-op
=head2 Minimal code
use Pod::Simple::HTML;
- my $html;
- $p->output_string(\$html);
- $p->parse_from_file('path/to/Module/Name.pm');
- open my $out, '>', 'out.html' or die;
+ my $p = Pod::Simple::HTML->new;
+ $p->output_string(\my $html);
+ $p->parse_file('path/to/Module/Name.pm');
+ open my $out, '>', 'out.html' or die "Cannot open 'out.html': $!\n";
print $out $html;
=head2 More detailed example
Parse and process a file with pod in it:
- $p->parse_from_file('path/to/Module/Name.pm');
+ $p->parse_file('path/to/Module/Name.pm');
=head1 METHODS
=head2 html_header_after_title
-Includes the closing tag of </title> and throught the rest of the head
+Includes the closing tag of </title> and through the rest of the head
till the opening of the body
$p->html_header_after_title('</title>...</head><body id="my_id">');
my $html;
$p->output_string(\$html);
- $p->parse_from_file('path/to/Module/Name.pm');
+ $p->parse_file('path/to/Module/Name.pm');
open my $out, '>', 'out.html' or die;
print $out $html;
=head1 ACKNOWLEDGEMENTS
-Thanks to L<Hurricane Electrict|http://he.net/> for permission to use its
+Thanks to L<Hurricane Electric|http://he.net/> for permission to use its
L<Linux man pages online|http://man.he.net/> site for man page links.
Thanks to L<search.cpan.org|http://search.cpan.org/> for permission to use the