Update: In the spirit of making sure that what one posts is true, clear and helpful, I thought I'd test my example code with $/ = "\r\n". The whole idea of the example was that you'd be able to see a difference between "\n" and "\r\n". Not so. Easy to see why when you think about it. I'll have to think of a better example!