I wrote a two-line batch file (pm.bat) which takes a module name as input, processes the perldoc output through pod2html, saves the output in a temporary file, and displays the output as a web page. The (pm.bat) batch file is shown below:
@echo off perldoc -m %* | pod2html > \tmp\perldoc_temp.htm & \tmp\perldoc_temp.h +tm & del pod2htmd.tmp pod2htmi.tmp
Example: pm File::Find
I tried creating a similar batch file to display functions, but the batch file processor does NOT like the "-f" in perldoc -f ..., so I'm off to search batch file documentation to see if there is a workaround. Meanwhile, (pm.bat) is working great for displaying module documentation in HTML format.
Update
My bad, it was not the batch file objecting to "-f". perldoc displays function help as plain text, not POD, so it is not a candidate to run through pod2html.
"Its not how hard you work, its how much you get done."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Better perldoc on Windows
by BrowserUk (Patriarch) on Jun 06, 2010 at 09:29 UTC | |
|
Re: Better perldoc on Windows
by Anonymous Monk on Jun 06, 2010 at 00:35 UTC | |
by roho (Bishop) on Jun 06, 2010 at 05:44 UTC | |
by Anonymous Monk on Jun 06, 2010 at 07:08 UTC | |
|
Re: Better perldoc on Windows
by Jenda (Abbot) on Jun 06, 2010 at 19:54 UTC | |
by LanX (Saint) on Jun 06, 2010 at 20:15 UTC | |
by Jenda (Abbot) on Jun 06, 2010 at 20:25 UTC | |
by BrowserUk (Patriarch) on Jun 07, 2010 at 00:33 UTC | |
by LanX (Saint) on Jun 07, 2010 at 01:19 UTC | |
by BrowserUk (Patriarch) on Jun 07, 2010 at 02:20 UTC | |
|