logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Bugs

       None known.

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.

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.36.0                                       2022-10-09                         Term::ProgressBar::IO(3pm)

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();
         }

See Also