in reply to Mac vs. PC line breaks

The logic to handle this was just recently in the question alter $/ - but why?

Of course, you'd probably want to localize the changes to $/, especially if the program persists through more than one file upload