use IO::Handle; STDOUT->autoflush(1); #### select((select(STDOUT), $| = 1)[0]);