use IO::Handle; STDOUT->autoflush(1); exec ./program_to_launch