Subject: | docs claim to do |$PAGER , but actually does $PAGER $tmpfile |
This works for manpages:
PAGER='sh -c "col -b -x | more"' man man
But doing the same with perldoc doesn't:
PAGER='sh -c "col -b -x | more"' perldoc perldoc
because the output isn't actually piped through $PAGER. One must instead do:
PAGER='sh -c "col -b -x | more" <' perldoc perldoc
Either the docs need to be updated, or the call to system needs to be
replaced with a call to open.