X-Git-Url: https://git.donarmstrong.com/?p=term-progressbar.git;a=blobdiff_plain;f=lib%2FTerm%2FProgressBar.pm;h=84ed9b805b203e6bd7ebaa5942aea836579435f7;hp=f1ed1dc1e3fe3b1414d32ec18a803a44000464b3;hb=33e231ca939cbe1231c82a60d2ba7f8461b659e3;hpb=9ba26e4bf76c371d7b7ab153c676510831816e2e diff --git a/lib/Term/ProgressBar.pm b/lib/Term/ProgressBar.pm index f1ed1dc..84ed9b8 100644 --- a/lib/Term/ProgressBar.pm +++ b/lib/Term/ProgressBar.pm @@ -75,6 +75,8 @@ bar for the same width. } } +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. @@ -97,6 +99,8 @@ distribution set (it is not installed as part of the module). $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