Howdy group,

I'm getting ready to add a module or two to CPAN.

I'm working on the POD documentation now. I'd like to make sure it looks right and the links work and all before I upload it to CPAN.

Is there an easy way to view the POD from a local module in a browser to see what it will look like in CPAN?

http://foo.host/viewpod.pl?mod=Foo.pm

I've started with:

#!/usr/bin/perl

use strict;
use warnings;
use CGI qw(header param);
use Pod:Html;

print header(); # need this ???

my $pmfile = -e '/modules/'.param('mod') ? param('mod') : 'Foo.pm';

pod2html('pod2html',
  '--backlink="Back to Top"',
  '--css=http://search.cpan.org/s/style.css',
  '--infile=/modules/$pmfile'
);


So the questions are now:

What does the first argument "pod2html" do? (It was in the example)
Do I need to print the content type header or does pod2html do that? (html to STDOUT with no --outfile)
How do I use a .pm file that has POD in it instead of a .pod file that is 100% pure pod?


The above code gives me a blank html page, that stops after the <body> tag so I know I'm doing something wrong :)

TIA

Lee.M - JupiterHost.Net

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to