Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Progress bar with (i)threads

by MaxKlokan (Monk)
on Dec 08, 2006 at 12:56 UTC ( [id://588578]=note: print w/replies, xml ) Need Help??


in reply to Progress bar with (i)threads

Have you tried disabling buffering with autoflush?
Just add:
$|=1;
at the top of your script.

Replies are listed 'Best First'.
Re^2: Progress bar with (i)threads
by PockMonk (Beadle) on Dec 08, 2006 at 13:59 UTC
    That did the trick. I hadn't come across autoflush before (I guess because I'd never done this sort of thing before with perl). Progress bar is now working.

    Thank you Perl Monks, you clever people you :-)

    Dan

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://588578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found