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.
In reply to Re: Term::ProgressBar won't update
by hv
in thread Term::ProgressBar won't update
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |