Subject: | Using Time::Progress with Mac OSX |
Date: | Tue, 24 Mar 2015 20:45:09 -0700 |
To: | bug-Time-Progress [...] rt.cpan.org |
From: | Balaji Ramasubramanian <balaji.ramasubramanian [...] gmail.com> |
I have been trying to use the module with Mac OS X and I’m unable to get it to work:
1. Version of the module: 1.8
2. Version of Perl: 5.18.2
3. OS details: Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Here’s a sample program I tried to write:
#!/usr/bin/env perl
use strict;
use warnings;
use Time::Progress;
$|=1;
my $very_large = 20;
my $p = new Time::Progress;
$p->attr(min => 0, max => $very_large);
for(my $i = 0 ; $i <= $very_large; $i++) {
$p->report("%b %p ETA:%e\nTask will finish at about %f\r", $i);
sleep 1;
}
$p->report("done %p %E (%l)\n", $very_large);
Thanks,
Balaji