#! perl.exe -w =pod =head1 Overview Modules installed with PPM automatically get HTML pod created for them. Unfortunately PPM has far fewer packages than CPAN, so it's quite likely that you'll turn to CPAN for a module at some point in time and CPAN doesn't care to automatically generate these files for you. This script attempts to alleviate that problem by assisting the user with pod2html, which can be tedious to use when running with multiple modules. Be sure to modify PERLPATH and HTMLPATH to values that make sense for your system. This script is released into the public domain. =head1 Usage $0 Module::Name1 Module::Name2 ... Module::NameN =cut use strict; use File::Path; use constant PERLPATH =>"D:/perl/site/lib"; use constant HTMLPATH =>"D:/perl/html/site/lib"; foreach (@ARGV){ my @mod = split /::/; my $in = join '/',PERLPATH,@mod; $in.=".pm"; my $fn = pop @mod; my $out = join '/',HTMLPATH, @mod; mkpath $out; $out .="/$fn.html"; my $css .="../" x (@mod + 1); $css .="active.css"; system "pod2html --infile=$in --outfile=$out --css=$css" }
In reply to perldocker by boo_radley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |