A related question - can you delay timeout by setting Perl to flush the buffer after every print, and printing a character every x number of chunks? Does the timeout count from the time data was last received from the script, or from the time the script started?