perlperldoc

Perl pod2html cannot resolve email link


Maybe I'm not doing this right, but for a lot of POD link examples the code just doesn't work in pod2html.

For instance:

Owner: L<Eric Fossum|mailto:myemail@gmail.com>

Seems to work with C:\perldoc filename and C:\pod2text filename, but C:\pod2html --title=SomeText --outfile=filename.html filename outputs:

pod2html.bat: filename: cannot resolve L<Eric Fossum|mailto:myemail@gmail.com> in paragraph 6.

Do you guys think it's an issue with my install or my code? How do I fix it?

Update:

Here are my module versions:

Can't locate Pod.pm in @INC (@INC contains: ...) at (eval 1) line 2.
Pod::Html           : 1.09
Pod::Simple         : 3.14
Pod::Simple::XHTML  : 3.14

Solution

  • It works fine for me with Perl v5.16.2. I'm using the following Pod:

    =pod
    
    Owner: L<Eric Fossum|mailto:myemail@gmail.com>
    
    =cut
    

    Inside the body of the HTML, it returns:

    <p>Owner: <a href="mailto:myemail@gmail.com">Eric Fossum</a></p>