Re: RFC 69 (v1) Standardize input record separator (for

[email protected] (Hildo Biersma) Wed, 09 Aug 2000 09:14:10 +0100
Newsgroups perl.perl6.language.io
Organization Morgan Stanley Dean Witter & Co.
Message-ID <[email protected]>
> =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