in reply to Writing to a Pipe

You are suffering from buffering. You also have at least two precedence bugs in the conditionals in your first statement.
use IO::Handle; if (!open(TPOOL, "|thread_pool.test)) { print "error: $!"; exit(1); } TPOOL->autoflush(1); while(1) { sleep 10; print TPOOL "This is just a test\n"; }

Replies are listed 'Best First'.
Re^2: Writing to a Pipe
by cmcmillo (Initiate) on Jun 22, 2007 at 20:28 UTC
    Dude. Your advice was right on thanks a lot. Craig