Steven Haryanto > Progress-Any-Output-0.03 > Progress::Any::Output

Download:
Progress-Any-Output-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Progress::Any::Output - Assign output to progress indicators

VERSION ^

version 0.03

SYNOPSIS ^

In your application:

 use Progress::Any::Output;
 Progress::Any::Output->set('TermProgressBarColor');

To give parameters to output:

 Progress::Any::Output->set('TermProgressBarColor', width=>50, ...);

To assign output to a certain (sub)task:

 Progress::Any::Output->set({task=>'main.download'}, 'TermMessage');

To add additional output, use add() instead of set().

DESCRIPTION ^

See Progress::Any for overview.

METHODS ^

Progress::Any::Output->set([ \%opts ], $output[, @args])

Set (or replace) output. Will load and instantiate Progress::Any::Output::$output. To only set output for a certain (sub)task, set %opts to { task => $task }. @args will be passed to output module's constructor.

Progress::Any::Output->add([ \%opts ], $output[, @args])

Like set(), but will add output instead of replace existing one(s).

SEE ALSO ^

Progress::Any

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: