Perldoc and POD

Author: John M. Gabriele | back to index

  • Perldoc and POD
  • ---

    Perl 6 Perldoc

    Perl 5 POD has been updated for Perl 6 by Damian Conway. The new Perl 6 Pod (note capitalization) is called Perldoc, or just Pod for short.

    The relevant module you want to install on your Perl 5 system is Perl6::Perldoc.

    The new command for converting to xhtml is perldoc2xhtml. There's also a perldoc2text command. After installing Perl6::Perldoc, the first thing you probably want to do is convert the S26.pod6 doc to html for easy reading.

    Quick Pod tips

    A few quick notes on Pod:

    Using Perl 5's pod2html

    Regarding Perl 5's POD, to make one big single html page:

    pod2html --title='foo' --outfile=foo.html --css=path/to/foo.css foo.pod
    

    If you want, you can browse a long page right in your terminal window:

    pod2html --outfile=/tmp/foo.html foo.pod; lynx /tmp/foo.html
    

    The benefits with that being the handy table of contents navigation menu you get at the top of the screen, and possibly a colorized display.