|
|
| "be consistent" | |
| PerlMonks |
Better perldoc on Windowsby roho (Prior) |
| on Jun 05, 2010 at 21:35 UTC ( #843290=CUFP: print w/ replies, xml ) | Need Help?? |
|
perldoc works fine on Windows, but the output is raw POD, which can be a little distracting while reading. I know there is an HTML sub-directory under C:\Perl, but it is annoying to have to leave the cmd window, open Windows Explorer, drill down to the HTML path, and find the module documentation.
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:
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."
Back to
Cool Uses for Perl
|
|
||||||||||||||||||||||||||||||||||||||||||