#! perl -w ########################################################### # Just a quick and dirty utility to search for POD that # hasn't been converted to HTML by an install or was simply # unzipped or copied into the site or lib subdirectories. # Checks to see if an existing .html version of the POD # exists, if not converts it to HTML. After conversion the # AS Docs TOC is rebuilt so that all newly added docs are listed. use strict; use Pod::Html; use Pod::Find qw(pod_find); use ActivePerl::DocTools; use File::Path; my $infile_path_root = "c:/perl"; my $outfile_path_root = "c:/perl/html"; my $logfile = "c:/perl/allpod.txt"; open LOGFILE, ">>$logfile" || die "couldn't open LOGFILE $logfile\n"; &search_for_pod; print LOGFILE "-" x 60, "\n"; close LOGFILE; ActivePerl::DocTools::WriteTOC(); sub search_for_pod { my %pods = pod_find({ -verbose => 0, -inc => 1 }); foreach(sort keys %pods) { convert_pod($_); } } sub convert_pod { my $podfile = shift; $podfile =~ s#\\#/#g; if ($podfile =~ m!$infile_path_root/(.*)/(\w+)\.p.+$!i) { my $path = $1; my $name = $2; if (! -e "$outfile_path_root/$path/$name\.html") { mkpath("$outfile_path_root/$path"); pod2html( "--infile=$podfile", "--outfile=$outfile_path_root/$path/$name.html", "--podroot=$infile_path_root", "--podpath=site/lib:lib", ); print LOGFILE "-- Created $outfile_path_root/$path/$name.h +tml\n"; } } }

In reply to Find and convert all pod to html by ryddler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.