Acme::ProgressBar - a simple progress bar for the patient
version 1.130
use Acme::ProgressBar; progress { do_something_slow };
Acme::ProgressBar provides a simple solution designed to provide accurate countdowns. No progress bar object needs to be created, and all the calculation of progress through total time required is handled by the module itself.
This module is shipped with no promise about what version of perl it will require in the future. In practice, this tends to mean "you need a perl from the last three years," but you can't rely on that. If a new version of perl ship, this software may begin to require it for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
progress { unlink $_ for <*> }; progress { while (<>) { $ua->get($_) } }; progress { sleep 5; }
There is only one function exported by default, progress. This function takes a coderef as its lone argument. It will execute this code and display a simple progress bar indicating the time required for ten iterations through the code.
progress
allow other divisions of time (other than ten)
Term::ProgressBar, Term::ProgressBar::Simple, Progress::Any::Output::TermProgressBarColor, Smart::Comments
Ricardo Signes <cpan@semiotic.systems>
Ricardo Signes <rjbs@semiotic.systems>
Sean Zellmer <sean@lejeunerenard.com>
This software is copyright (c) 2010 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Acme::ProgressBar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::ProgressBar
CPAN shell
perl -MCPAN -e shell install Acme::ProgressBar
For more information on module installation, please visit the detailed CPAN module installation guide.