I tried this and this works (though, as a have explained in my reply to Corion, I still don't quite understand
why it is necessary, since I didn't have to care about line endings when processing files in the "normal" way). Of course now I have the problem that I first need to find out
what line ending style the file has before being able to tie it. Maybe it's in my case better to read the file manually into the array instead of using Tie::File, as I don't want to change anyway.