Ano-Tech Computers
Enter keyword:

Perldoc shows single quotes as garbage characters
Problem:
When using 'perldoc', code examples are garbled beyond practical use by any occurances of special characters like single quotes.
 
Solution:
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"


 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles