Term::ProgressBar::IO -- Display a progress bar while reading from a seekable filehandle
my $pb = Term::ProgressBar::IO->new($fh); while (<$fh>) { # do something $pb->update(); }
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.
None known.
Create and return a new Term::ProgressBar::IO instance.
A valid filehandle or item count. IO::Uncompress filehandles are also properly handled.
All other arguments are documented in Term::ProgressBar
Automatically update the progress bar based on the position of the filehandle given at construction time.
Current progress point; this defaults to the current position of the filehandle. [You probably don't actually want to ever give this.]
To install Term::ProgressBar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::ProgressBar
CPAN shell
perl -MCPAN -e shell install Term::ProgressBar
For more information on module installation, please visit the detailed CPAN module installation guide.