in reply to Term::Progress bar completes at 5%

Nowhere you are setting $task.

And please, don't abuse symbolic references this way. It just make me cringe.

Also: I'm not convinced you'll see the destination of a file copy grow over time. More likely, the filesize will just jump from 0 to 100%; that's my guess, anyway.

Replies are listed 'Best First'.
Re^2: Term::Progress bar completes at 5%
by aramsey (Initiate) on Jun 19, 2012 at 21:43 UTC
    It's a snippit, the full script is assinging that variable. It's assigned in a foreach loop. The mount I'm copying to is an nfs share over a T1, so I would expect to see it grow over time. I can observe it grow from another shell. I'm not sure how else I should reference my thread objects while keeping them unique. Would you rather I nest it in a hash or what's best?