in reply to Does print() write immediately to a file?
select((select(OUTPUT_HANDLE), $| = 1)[0]); [download]
CURobartes-