Using the module
Use any of the components with:
use PBar::Simple; use PBar::Progress; use PBar::Label;Or use all of them by calling the wrapper: use PBar::Main;
For working examples of each of the PBar functions, see demo.pl in the PBar archive.
Simple
PBar::Simple->Init
Initialises the display.
PBar::Simple->Update
Updates the display.
PBar::Simple->End
Cleans up the display.
Progress
PBar::Progress->Init(int1,int2)
Initialises the display.
int1 is the maximum value expected (an integer), and int2 is the width in characters on the screen (also an integer).
int2 can be greater than the characters on a line; extra characters will simply cause the meter to be displayed on two (or more) lines.
PBar::Progress->Update(int)
Updates the display.
Where int is an integer equal or less than the Maximum set.
PBar::Progress->End
Cleans up the display.
Label
PBar::Label->Init
Initialises the display.
PBar::Label->Update(string)
Updates the display.
The string is a message to be displayed on screen.
PBar::Label->End
Cleans up the display.