In my pod, if I have something like this:

For more information, see L<thisfile.html>

When parsed

(EDIT: I'm currently using the pod2html utility, ala:

system("pod2html --infile $the_pod_source --outfile $the_pod_source\.h +tml");
, I'll get an error like this:
 
 cannot resolve L<thisfile.html> in paragraph xxx.

If I set the above to something like:

For more information, see L<http://example.com/thisfile.html>

and, "http://example.com/thisfile.html" exists, it works.

Any way to turn off the "check if it's actually there" test? I've got C<pod2html> in a little makefile - type script, so there's times where it's not going to be around in a URL and may not be around in the environment it's being parsed and created.

Update:

using the pod2html utility, I thought I'd see if passing the, --htmlroot parameter would help things - giving a base to place the relative URL to - no dice.

I guess the question *really* is, how do you pass a relative URL to an HTML document inside an L<> thingy in POD. If you can't, I guess I'm outta luck.

I guess I'll also look at the P6 version of POD and see if there's a way in there for the future. (crosses fingers)

 

-justin simoni
skazat me


In reply to POD L<> and relative links? by skazat

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.