On Sun Feb 16 18:05:42 2020, karl@freefriends.org wrote:
Show quoted text> Line 164 of Pod/Usage.pm from perl 5.30.1 is:
>
> system(($Config{pager} || $ENV{PAGER} || '/bin/more'), $1);
>
> I suggest that the user-set $ENV{PAGER} should be preferred to the
> Perl-set $Config{pager}. --thanks, karl.
+1
See attachment, which is a variation on the program presented inline by the OP in
https://rt.cpan.org/Public/Bug/Display.html?id=131845 and which implements the recommended switch in argument order.
On FreeBSD-11, where one typically sets PAGER in ~/.profile and where (for me, at least) there is no /etc/issue file, I get these results:
#####
$ perl rtc-131844-pod-usage.pl
config-pager: /usr/bin/less -R
env-pager: less
/etc/issue: No such file or directory
return: 256
#####
... which is a more accurate description of the state of the system than with the current order of switches.
Thank you very much.
Jim Keenan