[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] man2html?



>Does anyone know of a man page to html converter, in the spirit of
>pod2html?

Well, I don't know of one in Perl, but Jef Poskanzer (of pbmplus fame) has
a bunch of cool nifty utilities at his website, one of which is called
texttohtml. Most of his stuff that I've used is written in C for UNIX, but
since the source code is usually included you could port it to Perl.
(http://www.acme.com/software/texttohtml/)
Even in it's current form you could serve man pages from a UNIX server with
some piped commands in a perl script:

#!/usr/bin/perl
# Script to serve man pages. Gedanken Experiment (untested).
open (CONTROL, "man command | texttohtml |");
$man_html = <CONTROL>;
close(CONTROL);
print "Content-type: text/html\n\n";
print $man_html;
exit;

It's an idea anyway.  -Chris

Dept of Molecular and Cell Biology      "Information wants to be free."
UC Berkeley  * Kane Lab 614 Barker Hall



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch