Text::ProgressBar::ReverseBar - progress bar which stretches to fill the line in reverse order
version 0.2
use Text::ProgressBar::ReverseBar; my $prevbar = Text::ProgressBar->new(maxval => 300, widgets => [Text::ProgressBar::Percentage->new(), Text::ProgressBar::ReverseBar->new()]); $prevbar->start(); for my $i (1..300) { sleep 0.01; $prevbar->update($i+1); } $prevbar->finish;
A progress bar which stretches to fill the line but from right to left. It inherits all attributes of 'Bar' and can extend them.
The drawing ascii characters can be changed during calling class constructor or by calling the corresponding methods. Example of defalut output
| #######|
add additional works after object creation
Farhad Fouladi, <farhad at cpan.org>
<farhad at cpan.org>
Copyright 2012 Farhad Fouladi.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Text::ProgressBar, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::ProgressBar
CPAN shell
perl -MCPAN -e shell install Text::ProgressBar
For more information on module installation, please visit the detailed CPAN module installation guide.