in reply to Term::ProgressBar won't update
In the docs example, it is implicitly looping over $_ in the line for (0 .. $max). In your case you are using $i (which is probably a good thing), so you should use that instead: $next_update = $progress->update($i) if $i >= $next_update.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Term::ProgressBar won't update
by cormanaz (Deacon) on Sep 17, 2022 at 22:08 UTC | |
by AnomalousMonk (Archbishop) on Sep 17, 2022 at 23:05 UTC |