in reply to how POD will look on CPAN


Here is a small filter program based on Pod::Simple::HTML (like search.cpan) that also uses their css and will give you a good idea of how it will look (and also report any Pod errors):
#!/usr/bin/perl -w use strict; use Pod::Simple::HTML; my $parser = Pod::Simple::HTML->new(); if (defined $ARGV[0]) { open IN, $ARGV[0] or die "Couldn't open $ARGV[0]: $!\n"; } else { *IN = *STDIN; } if (defined $ARGV[1]) { open OUT, ">$ARGV[1]" or die "Couldn't open $ARGV[1]: $!\n"; } else { *OUT = *STDOUT; } $parser->index(1); $parser->html_css('http://search.cpan.org/s/style.css'); $parser->output_fh(*OUT); $parser->parse_file(*IN); __END__
You can run it as follows:
perl pod2cpanhtml.pl Module.pm > module.html

Update: This utility is now available on CPAN as pod2cpanhtml which is installed as part of App::Pod2CpanHtml.

--
John.

Replies are listed 'Best First'.
Re^2: how POD will look on CPAN
by spx2 (Deacon) on Oct 02, 2009 at 10:16 UTC
    thanks , this is exactly what I needed and I'm using it now :)
      actually now that I think of it, I could've just injected the css ... it's funny