Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

perl pod link to anoter document

by vlad_tepesch (Novice)
on Apr 27, 2012 at 09:28 UTC ( #967566=perlquestion: print w/replies, xml ) Need Help??
vlad_tepesch has asked for the wisdom of the Perl Monks concerning the following question:


I want to embed a (in html clickable) link to another file that have to be in same direcory into text

L<file:///..myFile.html> does not work since i can not specify files in same directory with a absolute path

L<myFile.html> does not work because pod expected this to be some section of current document.

are there any options beside writing whole paragraph in a "=begin html"/"=end html" block?

Replies are listed 'Best First'.
Re: perl pod link to anoter document
by moritz (Cardinal) on Apr 27, 2012 at 09:45 UTC

    I haven't tried it, but you can specify relative paths with file:// URLs, you just have to use two slashes instead of three. (The two slashes are part of the protocol specification, if there is a third one, it's the leading slash of an absolute path).

      i tried this and it did not work. the results are empty file links (file:///) says
      Or you can link to a web page:
          Links to an absolute URL. For example, L<> or L<The Perl Home Page|>.

        i tried this and it did not work.

        You tried what?


        =head1 LINKS TO SHAM BO C<<< file:sham.html >>> L<file:sham.html> C<<< file:./sham.html >>> L<file:./sham.html> BOGUS LINKS, ABSOLUTE NOT RELATIVE ACCORDING TO FIREFOX C<<< file://sham.html >>> L<file://sham.html> C<<< file://./sham.html >>> L<file://./sham.html> =cut

        This fails (I expected this, many bugs in pod2html)  pod2html ro.pod > ro.html

        This works  perl -MPod::Simple::HTML -e Pod::Simple::HTML::go ro.pod  ro.html

        This works pom2 html ro.pod > ro.html

        This works :) plackup -l localhost:80 -e require(Pod::POM::Web::PSGI)

Re: perl pod link to anoter document
by Anonymous Monk on Apr 27, 2012 at 10:21 UTC

    are there any options beside writing whole paragraph in a "=begin html"/"=end html" block?

    =for html this html of mine =cut

    But I don't see why you'd mix pod and html, write links to pod documents, otherwise do it all with your favorite html editor

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://967566]
Approved by moritz
Front-paged by Corion
[Corion]: Meh. IE crashes when displaying that SVG as saved from Firefox ...
LanX blame Canada!
[Discipulus]: to crash is not the default behaviour of IE? ;=)
[Discipulus]: so every library (js) to sdelect and modify the id parameters can be good.
[Discipulus]: I never understood something: I can on the fly modify the XML structure of the SVG using for example XML::Twig ?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-03-23 09:36 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.