Thank you very much, great idea! I missed in my mind, that puts just
uses global variable $stdout.