}
}
+see eg/simle_use.pl
+
Here is a simple example. The process considers all the numbers between 0 and
MAX, and updates the progress bar whenever it finds one. Note that the
progress bar update will be very erratic. See below for a smoother example.
$progress->update($_)
}
+See eg/smooth_bar.pl
+
This example calls update for each value considered. This will result in a
much smoother progress update, but more program time is spent updating the bar
than doing the "real" work. See below to remedy this. This example does
my $progress = Term::ProgressBar->new({name => 'Powers',
count => $max,
- ETA => linear, });
+ ETA => 'linear', });
$progress->max_update_rate(1);
my $next_update = 0;
use vars qw($PACKAGE $VERSION);
$PACKAGE = 'Term-ProgressBar';
-$VERSION = '2.09';
+$VERSION = '2.11';
# ----------------------------------
# CLASS CONSTRUCTION