Farhad Fouladi > Text-ProgressBar-0.3 > Text::ProgressBar::FormatLabel

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::FormatLabel - displays a formated label

VERSION ^

version 0.2

SYNOPSIS ^

    use Text::ProgressBar::FormatLabel;

    my $bar = Text::ProgressBar->new(widgets => [Text::ProgressBar::FormatLabel->new(format_string => 'Processed: currval lines (in: seconds_elapsed seconds)')]);
    $bar->start();
    for my $i (1..100) {
        sleep 0.2;
        $bar->update($i+1);
    }
    $bar->finish;

DESCRIPTION ^

Displays a formatted label. It inherites attribute of 'Timer'. Output of above example:

    Processed: 19 lines (in: 3 seconds)                                                                                    

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: