Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Term::ProgressBar::IO(User Contributed Perl DocumentatTerm::ProgressBar::IO(3)

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 Term::ProgressBar which corresponds to
       reading from a filehandle.

       This module inherits from Term::ProgressBar 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. 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.]

perl v5.24.1			  2016-11-27	      Term::ProgressBar::IO(3)

NAME | SYNOPSIS | DESCRIPTION | BUGS | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Term::ProgressBar::IO&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help