> -----Original Message-----
> From: Nikola Knezevic [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 07, 2001 12:26 AM
> To: [EMAIL PROTECTED]; Perl Users Mailing List
> Subject: RE: viewing POD
>
>
> >>> And now the next QOD:)
> >>> Does anyone knows an utility suitable for viewing POD files.
> perldoc
>
> >A different PAGER is what you want. I use Notepad.exe. You can too -
> find
> >out how: perldoc perldoc
>
> Well, no, but its cute solution...

it demostrates perldoc filters.

> I think that I'll need to fire up VC++ and write something that will do
> what I need.

overkill. Think Perl (you can't possibly be the first to want this).

>
> Quick question follows:
> How to do this > order perldoc not to output in plaintext, rather in
> HTML??
>
> I'll then just set PAGER to opera, and everything is OK... (for now).
>

(you could have read this elsewhere...)
AS Perl ships with POD in HTML format. PPM installs POD in HTML format.
pod2html turns POD into HTML. perldoc perlpod and perldoc perldoc should be
consulted. Here's something that works for what you want (for now):
perldoc perldoc | perl -MPod::Html -e
"pod2html(\"--outfile=$ENV{TEMP}/pod.html\");system \"Start
$ENV{TEMP}/pod.html\";unlink \"$ENV{TEMP}./pod.html\";"

make a doskey macrofile with this in it (for later):
htpod=perldoc -u $* | perl -MPod::Html -e
"pod2html(\"--outfile=$ENV{TEMP}/pod.html\");system \"Start
$ENV{TEMP}/pod.html\";unlink \"$ENV{TEMP}./pod.html\";"

modify to run elsewhere.

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to