More choices in the pager war. Unfortunately, we can't rely on
all users agreeing with the Sysadmin's choice, nor can we
assign a default preference order, since opinions vary. If the
user doesn't have $ENV{PAGER} set, we do want to pick up one that
at least works, so we'll try whatever Configure found.
@pagers = qw( more less pg view cat );
unshift(@pagers,$ENV{PAGER}) if $ENV{PAGER};
} else {
+ require Config;
$tmp = 'Sys$Scratch:perldoc.tmp1_'.$$;
- @pagers = qw( most more less type/page );
+ @pagers = ($Config::Config{'pager'},qw( most more less type/page ));
unshift(@pagers,$ENV{PERLDOC_PAGER}) if $ENV{PERLDOC_PAGER};
$goodresult = 1;
}