Skip Menu |
 

This queue is for tickets about the Time-Progress CPAN distribution.

Report information
The Basics
Id: 103084
Status: open
Priority: 0/
Queue: Time-Progress

People
Owner: Nobody in particular
Requestors: balaji.ramasubramanian [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 656b
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
Download (untitled) / with headers
text/plain 863b
On 2015-03-24 23:45:29, BALAJIRAM wrote: Show quoted text
> 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
The "print" is missing --- report() just outputs a string and does not print itself.
Subject: Re: [rt.cpan.org #103084] Using Time::Progress with Mac OSX
Date: Wed, 25 Mar 2015 07:37:38 -0700
To: bug-Time-Progress [...] rt.cpan.org
From: Balaji <balaji.ramasubramanian [...] gmail.com>
Download (untitled) / with headers
text/plain 1.1k
Aah!! Let me try it again now. Thanks a lot!! On Mar 24, 2015 11:32 PM, "Slaven_Rezic via RT" < bug-Time-Progress@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=103084 > > > On 2015-03-24 23:45:29, BALAJIRAM wrote:
> > 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
> > The "print" is missing --- report() just outputs a string and does not > print itself. > > >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.