Fixing the POD synopsis in OSX

Having problems copying example code from POD and getting invalid characters in your Perl? Apparently this is a problem with nroff on OS X (According to my linux hacking peeps), but the solution is quite simple. Just stuff this in your .profile or whatever ;)

alias perldoc='perldoc -t'

And your pod is rendered in glorious pure-text, without using weird characters for ‘ and -.

Tags: , ,

Trackbacks:

  1. Fixing the POD synopsis in OSX – take 2 (perldoc, nroff and UTF-8) « Not this… Says:

    [...] I was delighted to see a blog post by marcus ramberg called Fixing the POD synopsis in OSX wherein he fingers nroff as being the problem and gives a simple solution: alias perldoc=’perldoc [...]