perldoc pain

perrin on 2008-04-15T21:41:57

You know when you perldoc a module, see what you need in the example code, copy it, paste it into your program, edit it a little, and then... it doesn't work? And you get really strange error messages? And finally you realize it's because the single-quotes or pipes that you pasted are some kind of insane unicode characters rather than the normal ASCII thing they look like?

I hate that.


groff

rjbs on 2008-04-15T21:57:41

This came up on p5p a while ago, and the culprit turned out to be recent groff releases, if I recall correctly. If I recall further correctly, it's going to be fixed. So... we've got that to look forward to.

Re:groff

miyagawa on 2008-04-15T23:08:52

Meanwhile I do this

alias perldoc "env LANG=C perldoc"

Re:groff

bart on 2008-04-16T06:53:37

Wouldn't the simple fix be to set this environment variable at the start of perldoc?

Re:groff

Aristotle on 2008-04-16T12:49:43

Make that “alias pod='...'” for good measure.