I like Pod::XHTML because I get better control of the output formatting, but I really want the "--podpath" kind of searching in Pod::Html. Is this feasible? Assuming I know nothing about subclassing? (BTW, this is for https://www.openssl.org/docs/manpages )

What?

What is your actual ultimate goal? Combine wrap pod2html in a perl script and Adding "podpath" to Pod::XHTML? a picture is starting to form, but the details are peculiar, can you clarify them?

Does this help you in any way?

get '/mods/doc/:modname' => sub { my %params = params; my $ruri = request->request_uri(); if( $ruri =~ s/%3A/:/g ) { ## workaround for Pod::Simple::HTML , I prefer : over %3A ## and I preserve the rest http://localhost/mods/doc/Dancer%3A%3AReque +s%74 return redirect( $ruri ); } my $ret = eval { modlist::pod2html( %params ) }; if( !defined $ret or !length $ret ) { return meta_redirect( params, redirect => uri_for( "/mods" ) ) +; } return cache_page $ret; }; sub modlist::pod2html { my %opts = @_; my $module = $opts{modname}; my $modfile = $INC{$module}; $modfile ||= do { use Config(); use Pod::Find(); Pod::Find::pod_where( { -inc => 1, -script => 1, -perl => 1, -dirs => [ @INC, grep { defined and length } @Config::Config{ qw' installsitebin installsitescript installvendorbin installvendorscript installbin installscript ' } ], }, $module ); }; use Pod::Simple::XHTML; my $pshtml = Pod::Simple::XHTML->new; $pshtml->index( 1 ); $pshtml->html_css( 'http://search.cpan.org/s/style.css' ); $pshtml->perldoc_url_prefix( '' ); $pshtml->perldoc_url_postfix( '' ); $pshtml->man_url_prefix( 'http://man.linuxquestions.org/index.php?type=2&query=' ); $pshtml->man_url_postfix( '' ); my $somestring = ""; $pshtml->output_string( \$somestring ); $pshtml->parse_file( $modfile ); return $somestring; } ## end sub modlist::pod2html

In reply to Re: Adding "podpath" to Pod::XHTML? by Anonymous Monk
in thread Adding "podpath" to Pod::XHTML? by rsalz

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.