in reply to wrap pod2html in a perl script

Sure, just look inside, you'll see pod2html is the module Pod::Html , and if you look inside that you'll see it uses Pod::Simple::XHTML ...
my $pshtml = Pod::Simple::HTML->new; $pshtml->output_string( \$somestring ); $pshtml->parse_file($modfile);