Term::ProgressBar::IO -- Display a progress bar while reading from a seekable filehandle


NAME

Term::ProgressBar::IO -- Display a progress bar while reading from a seekable filehandle


SYNOPSIS

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


DESCRIPTION

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

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


BUGS

None known.


METHODS

new

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

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

OTHER ARGUMENTS
All other arguments are documented in the Term::ProgressBar manpage

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.]

 Term::ProgressBar::IO -- Display a progress bar while reading from a seekable filehandle