in reply to Controlling whether output goes in DOS or Unix file format
Thanks a lot. The LAYER section of binmode looks promising ;-)