1Term::ProgressBar::IO(3U)ser Contributed Perl DocumentatiToenrm::ProgressBar::IO(3)
2
3
4
6 Term::ProgressBar::IO -- Display a progress bar while reading from a
7 seekable filehandle
8
10 my $pb = Term::ProgressBar::IO->new($fh);
11
12 while (<$fh>) {
13 # do something
14 $pb->update();
15 }
16
18 Displays a progress bar using Term::ProgressBar which corresponds to
19 reading from a filehandle.
20
21 This module inherits from Term::ProgressBar and has all of its options.
22
24 None known.
25
27 new
28 Create and return a new Term::ProgressBar::IO instance.
29
30 ARGUMENTS
31 count
32 A valid filehandle or item count. IO::Uncompress filehandles
33 are also properly handled.
34
35 OTHER ARGUMENTS
36 All other arguments are documented in Term::ProgressBar
37
38 update
39 Automatically update the progress bar based on the position of the
40 filehandle given at construction time.
41
42 ARGUMENTS
43 so_far
44 Current progress point; this defaults to the current position
45 of the filehandle. [You probably don't actually want to ever
46 give this.]
47
48
49
50perl v5.34.0 2021-07-23 Term::ProgressBar::IO(3)