G'day jimw54321,

I have Perl v5.18.1 (I can't see any mention of changes to "perldoc" or "POD" in the latest, v5.18.2, perldelta). I have version 3.19 of Pod::Perldoc ("The guts of perldoc utility."). I'm on a completely different platform to you (Mac OS X): keep this in mind when reading the following.

I used to have a variety of problems with perldoc output which I fixed, after much trial and error, simply by adding this to my ~/.bash_profile (the equivalent on your OS may be ~/.profile [it's been quite a few years since I last worked on Solaris]):

PAGER="/usr/bin/less -R"

This version of less seems to have the same options as me, check that -R means the same on your platform. Other options that may be worth trying are -r (which is similar to -R) and -s (to squeeze multiple, consecutive blank lines into one) which seems directly applicable to the problem you describe.

I don't have PERLDOC_PAGER or MANPAGER set. See perldoc - ENVIRONMENT for more information on pager settings and other less options.

In case it helps, here's my terminal characteristics (in the spoiler):

-- Ken


In reply to Re: Trouble using perldoc by kcott
in thread Trouble using perldoc by jimw54321

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.