open OUT, ">>", "test.txt"; binmode OUT; print OUT "some text\x0A"; close OUT;