go ahead... be a heretic PerlMonks

### RE: The sad state of Perl documentation

by mdillon (Priest)
 on Sep 14, 2000 at 03:04 UTC ( #32389=note: print w/replies, xml ) Need Help??

it's pretty easy to make PDF's from POD using fairly common tools. watch:
$perldoc -u HTTP::Request > HTTP_Request.pod$ pod2latex HTTP_Request.pod
$perl -e 'open TEX, "+< HTTP_Request.tex" or die; @l = <TEX>; seek TEX, 0, 0; truncate TEX, 0; print TEX "\\documentclass[10pt]{article}\\begin{document}",$/,
print TEX map { s/^%\\/\\/; $_ } @l; print TEX "\\end{document}",$/;
close TEX;'
\$ pdflatex HTTP_Request.tex
[download]

here are HTTP::Request and strict. PostScript is similarly easy to generate by replacing pdflatex with pslatex.

Replies are listed 'Best First'.
RE: RE: The sad state of Perl documentation
by merlyn (Sage) on Sep 14, 2000 at 03:11 UTC
Or even skip all the other steps and just use Pod::Pdf directly! {grin}
RE: RE: The sad state of Perl documentation
by SuperCruncher (Pilgrim) on Sep 14, 2000 at 21:14 UTC
I think you're largely missing the point. Sure, I can convert the document in whatever format using module Foo::Bar, but I shouldn't have to. What if I want to get a nice clean print-out of part of the perl documentation? The quickest way to do this is to download a PDF, and print the desired pages.

The solution should not be that I am forced to write a script to do the converting for me. Also imagine poor Perl newbies trying to figure out how to install module Foo::Bar required for converting into whatever format and then trying to figure out how to actually write the script.

if you're really so worried about the "poor newbies", then undertake this task yourself. don't wait for "the leaders" of the "Perl community" to do it for you. you don't even have to write a script. you can just use the one i wrote, or take merlyn's suggestion and use pod2pdf or its underlying module Pod::Pdf.

then, find space on a web server somewhere and keep available an up-to-date version of your compiled documentation. i haven't missed any points. you have in assuming that someone else should be creating this documentation that you want. more power to whomever should decide that printable documentation is important enough to themselves and other users of Perl to implement and maintain a resource such as this.

Create A New User
Node Status?
node history
Node Type: note [id://32389]
help
Chatterbox?
and the grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-12-17 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
What programming language do you hate the most?

Results (465 votes). Check out past polls.

Notices?