-
-
12 May 2018 09:01:52 UTC
- Distribution: Term-ProgressBar
- Module version: 2.22
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (5)
- Testers (4970 / 3 / 0)
- Kwalitee
Bus factor: 2- 78.31% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (19.05KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Martyn J. Pearce
- Dependencies
- Carp
- Class::MethodMaker
- Fatal
- POSIX
- Term::ReadKey
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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.]
Module Install Instructions
To install Term::ProgressBar, copy and paste the appropriate command in to your terminal.
cpanm Term::ProgressBar
perl -MCPAN -e shell install Term::ProgressBar
For more information on module installation, please visit the detailed CPAN module installation guide.