in reply to RE: Too much text
in thread Too much text

But

open PAGER, ($ENV{PAGER} || 'less') . '|' or die "blah $!";

Doesn't open a pipe to the pager, least not on my system? (main::PAGER only opened for input), Am I missing something? But thanks for leading me to:

open PAGER, ('|' . $ENV{PAGER}) or die "blah $!";

Replies are listed 'Best First'.
RE: query: Too much text
by tye (Sage) on Aug 02, 2000 at 19:32 UTC

    Correct. And that should be

    $ENV{PAGER} || 'more'

    so that it works on Windows (contrary to the original proposers claim) and on many other systems that may not have 'less' installed.