in reply to Re: perl threads wait application?
in thread perl threads wait application?

Is there some reason for muddying the waters of this reply, with these 3 lines?

use FileHandle; ... my $fh_in = FileHandle->new(); $fh_in = *STDIN{IO};

Instead of

while( <STDIN> ) {

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^3: perl threads wait application?
by zentara (Cardinal) on May 18, 2007 at 11:32 UTC
    You are right. I can't recall exactly why, but in some hacking in the past, I found that the FileHandle method had some benefit if you wanted both keyboard and pipe input. I can't reproduce the problem now, so I stand corrected..... no more muddy water. :-)

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum