in reply to Cross platform file I/O code
If you wish to change this, use binmode. But unless you are using binmode or reading the same files on multiple operating systems at once, you don't need to worry about what the record separator is.
Or put another way, the following script is portable:
#! /usr/bin/perl -w use strict; print "Hello, world\n";
|
|---|