File: README

package info (click to toggle)
libterm-progressbar-quiet-perl 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 76 kB
  • ctags: 2
  • sloc: perl: 51; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 985 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
NAME
    Term::ProgressBar::Quiet - Provide a progress meter if run interactively

SYNOPSIS
      use Term::ProgressBar::Quiet;
      my @todo     = ( 'x' x 10 );
      my $progress = Term::ProgressBar::Quiet->new(
          { name => 'Todo', count => scalar(@todo), ETA => 'linear' } );

      my $i = 0;
      foreach my $todo (@todo) {

          # do something with $todo
          $progress->update( ++$i );
      }
      $progress->message('All done');

DESCRIPTION
    Term::ProgressBar is a wonderful module for showing progress bars on the
    terminal. This module acts very much like that module when it is run
    interactively. However, when it is not run interactively (for example,
    as a cron job) then it does not show the progress bar.

AUTHOR
    Leon Brocard, acme@astray.com

COPYRIGHT
    Copyright (c) 2007 Leon Brocard. All rights reserved. This program is
    free software; you can redistribute it and/or modify it under the same
    terms as Perl itself.