IO::Pager::Page(3pm)

IO::Pager::Page3pm

Emulate io::page, pipe stdout to a pager if stdout is a tty

Usage

Pipes STDOUT to a pager if STDOUT is a TTY

Overview

IO::Pager was designed to programmatically decide whether or not to point the STDOUT file handle into a pipe to program specified in the PAGER environment variable or one of a standard list of pagers.

Usage

  BEGIN {
    use IO::Pager::Page;
    # use I::P::P first, just in case another module sends output to STDOUT
  }
  print<<HEREDOC;
  ...
  A bunch of text later
  HEREDOC

If you wish to forgo the potential for a Broken Pipe foible resulting from the user exiting the pager prematurely, load IO::Pager::Page like so:

  use IO::Pager::Page hush=>1;

Releases

7 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10
  4. 11–13
  5. Arch

Author

Jerrad Pierce <[email protected]>

Florent Angly <[email protected]>

This module inspired by Monte Mitzelfelt's IO::Page 0.02

From perl-io-pager 2.10-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.