Just a final note about perldoc on Windows: I looked at some old comp.lang.perl.misc posts and found various comments about this. The problem seems to be that "v5.8.0 perldoc writes it's temp file as binary, so the end of line isn't adapted to the platform...Win98's more.com can't handle this"
One solution is to install the module Pod::Perldoc which has its own Perldoc.pm and perldoc. Another solution is to:
set PAGER="c:\program files\accessories\wordpad.exe"
(This works and is rather nice in that one can move around in the output.) Finally, I once wrote the following script
which is basically a wrapper around perldoc (it seems to
cure the end of line problem and also saves the output in a file "tmp" which can be opened in an editor if desired):
$args="";
while ($x=shift){$args.=" $x";}
$cmdstring=qq/perl -e "system \\\"perldoc $args\\\"" > tmp/;
system $cmdstring;
open F,"<tmp";
system "more tmp";
(This can be made into a batch file using pl2bat.)
It's perhaps a bit silly, but I use perldoc constantly, and
was rather frustrated by the hard to read output.
By the way, there doesn't seem to be a problem on later versions of Windows (e.g. XP.)
chas
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.