Term::ProgressBar::IO(3pm)

Term::ProgressBar::IO3pm

Usage

  my $pb = Term::ProgressBar::IO->new($fh);
  while (<$fh>) {
      # do something
      $pb->update();
  }

Overview

Displays a progress bar using Term::ProgressBar which corresponds to reading from a filehandle.

This module inherits from Term::ProgressBar and has all of its options.

Methods

new

Create and return a new Term::ProgressBar::IO instance.

ARGUMENTS
count

A valid filehandle or item count. IO::Uncompress filehandles are also properly handled.

OTHER ARGUMENTS

All other arguments are documented in Term::ProgressBar

update

Automatically update the progress bar based on the position of the filehandle given at construction time.

ARGUMENTS
so_far

Current progress point; this defaults to the current position of the filehandle. [You probably don't actually want to ever give this.]

Releases

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

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

Bugs

None known.

From perl-term-progressbar 2.23-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.