in reply to how to unblocking with thread?

Wish i could help. I'm working on threads right now and having problems myself. Linking the thread sent to thread that data that was returned when joined.

I simply wanted to ask about $|++;

What exactly does that do? I tried looking it up on google but no luck.

Thanks in advance. M

Replies are listed 'Best First'.
Re^2: how to unblocking with thread?
by Marshall (Canon) on Feb 22, 2011 at 18:34 UTC
    $| is a special Perl variable. $|=1; turns buffering off on the currently selected file handle. $|++; does the same thing (any non-zero value will do). In the above code, I believe that this would only apply to STDOUT.