in reply to Re-Opening STDOUT on Socket changes the Socket
In the documentation for syswrite, it says that you should not use that and print on the same handle. One of them is buffered and the other is not.