> =head1 DESCRIPTION
>
> For easier portability, the default input record separator should
> at least match /\015?\012/, so that the following works on as many
> platforms as possible:
>
> while (<FH>) {
> do_stuff_with_only_one_line_or_manually_buffered_lines;
> }
>
> I don't know where $/ is going, so this is not necessarily about $/.
This supports reading Windows files on Unix, is not necessary for
Windows files on Windows, and fails to support the more different OSes
such as MacOS and OS/390 (maybe also VMS). It also doesn't take Unicode
into account.
Why make such an incomplete attempt at solving the problem? Solve it
properly - see Larry's post a few days back on how input disciplines can
solve the larger problem.
Hildo