in reply to Re: strange output characters from perldoc
in thread strange output characters from perldoc

Try looking at your PAGER environment variable. Mine was set to "more" and it was messing up from the output from perldoc (although normal "man" worked fine). I switched PAGER to be "less -R" and now perldoc looks good.

This is using xterm on FreeBSD, FWIW.

  • Comment on Re^2: strange output characters from perldoc

Replies are listed 'Best First'.
Re^3: strange output characters from perldoc
by kcott (Archbishop) on May 15, 2013 at 03:26 UTC

    ++ Thanks! I had less; less -R is a vast improvement.

    -- Ken

Re^3: strange output characters from perldoc
by Anonymous Monk on Feb 26, 2015 at 06:15 UTC
    Perfect. This solved my problem too! My term was xterm-256color and man worked fine, although perldoc had escape sequences just like described here. setting my PAGER to less -R solved it for me!!! Thank you!!