Farhad Fouladi > Text-ProgressBar > Text::ProgressBar::Percentage

Download:
Text-ProgressBar-0.3.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.2   Source  

NAME ^

Text::ProgressBar::Percentage - displays percentage as a number with a percent sign

VERSION ^

version 0.2

SYNOPSIS ^

    use Text::ProgressBar::Percentage;

    my $prevbar = Text::ProgressBar->new(maxval => 300, widgets  => [Text::ProgressBar::Percentage->new()]);
    $prevbar->start();
    for my $i (1..300) {
        sleep 0.01;
        $prevbar->update($i+1);
    }
    $prevbar->finish;

DESCRIPTION ^

Displays the current percentage as a number with a percent sign

METHODS ^

update

handler for redrawing current regions within the area. (Inherited from Widget.)

AUTHOR ^

Farhad Fouladi, <farhad at cpan.org>

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: