That's a nice trick :) Regarding my module, its purpose was to dynamically work with any file, regardless of its endings while on any platform, without clobbering the original endings (it effectively loads up the file using the local platform's record separator, and then writes back to a file with the recsep found in the original file).
Imagine automatically editing 5,000 files where there is a mix of various line endings. My module eliminates the need to even check each file, they will all be written back to orig endings. This was a scenario I ran into with another one of my modules, so I wrote this one to work around the problem.
| [reply] |