use IO::Handle; autoflush STDOUT 1;