Skrevet av Emne: Perldoc shows single quotes as garbage characters  (Lest 4286 ganger)

ATC

  • Gjest
Perldoc shows single quotes as garbage characters
« på: 15. Oktober 2008, 22:24 pm »
  • [applaud]0
  • [smite]0
  • When using 'perldoc', code examples are garbled beyond practical use by any occurances of special characters like single quotes.



    ATC

    • Gjest
    [Solved] Perldoc shows single quotes as garbage characters
    « Svar #1 på: 15. Oktober 2008, 22:24 pm »
  • [applaud]0
  • [smite]0
  • This is usually caused by broken terminal settings, but there's a very simple workaround. Simply tell perldoc to display text using pod2text instead of pod2man and nroff.

    perldoc -t

    Or more conveniently: Edit your ~/.bash_profile and add the following:
    export PERLDOC="-t"