in reply to Select this! ;-)
in thread Long Process Waits Until End to Display Results

Changing the code as follows:

unless (open F, "-|") { open STDERR, ">&=1"; select(STDIN); $| = 1; select(STDERR); # also tried select(F) here $| = 1; exec "$command"; } while (<F>) { $buffer .= $_; $cache->set($session, [0, $buffer]); }
Does not make any difference.

CT

Charles Thomas
Madison, WI

Replies are listed 'Best First'.
Re^2: Select this! ;-)
by Luca Benini (Scribe) on Dec 08, 2004 at 16:17 UTC
    Try with second entry.... select RBITS,WBITS,EBITS,TIMEOUT