Progress bars are handy - they tell you how much work has been done, how much is left to do and estimate how long it will take.
But they can be fiddly!
Term::ProgressBar::Simple is a Perl module that does the right thing in almost all cases in a really convenient way.
SYNOPSIS
# create some things to loop over
my @things = (...);
my $number_of_things = scalar @things;
# create the progress bar object
my $progress = Term::ProgressBar::Simple->new( $number_of_things );
# loop
foreach my $thing (@things) {
# do some work
$thing->do_something();
# increment the progress bar object to tell it a step has been taken.
$progress++;
}
# See also use of '$progress += $number' later in pod
Product's homepage
Requirements:
· Perl