in reply to Troubles with do...while loop and sleep
use IO::Handle qw( ); STDOUT->autoflush(1); do { sleep(5); print "Hello..."; } while(1); [download]
use IO::Handle qw( ); do { STDOUT->flush(); sleep(5); print "Hello..."; } while(1); [download]