in reply to Re^3: IO::File handle and printf
in thread IO::File handle and printf

Works fine in 5.10 and 5.12. Maybe your version misinterprets << as a shift operator in that situation?