I am looking for a way to easyly detect the native newline encoding of the OS running my perl script. Besides using a table to infer it from $^O, is there any other way to detect it?
A CPAN module will also do, but searching on CPAN for newline, crlf, carriage return, etc. doesn't show anything interesting.