Acme::ProgressBar - a simple progress bar for the patient


Acme-ProgressBar documentation  | view source Contained in the Acme-ProgressBar distribution.

Index


NAME

Top

Acme::ProgressBar - a simple progress bar for the patient

VERSION

Top

version 1.126

SYNOPSIS

Top

 use Acme::ProgressBar;
 progress { do_something_slow };

DESCRIPTION

Top

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.

FUNCTIONS

Top

progress

 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.

TODO

Top

AUTHOR

Top

Ricardo Signes <rjbs@cpan.org>

COPYRIGHT AND LICENSE

Top


Acme-ProgressBar documentation  | view source Contained in the Acme-ProgressBar distribution.