develooper Front page | perl.perl6.language.io | Postings from August 2000

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

Thread Previous | Thread Next
From:
Chaim Frenkel
Date:
August 9, 2000 07:34
Subject:
Re: RFC 69 (v1) Standardize input record separator (for
Message ID:
m3k8dq1p1o.fsf@csamnycln01.nyc.csam.com
Please explain in what way "\n" is not safe on all platforms?

On all platforms, the actual line seperators are translated (except
under binmode()) to "\n". 

If you do decide to switch to binmode() you are in non-portable
territory.

<chaim>

>>>>> "PRL" == Perl6 RFC Librarian <perl6-rfc@perl.org> writes:

PRL> =head1 ABSTRACT

PRL> The default input record separator is not safe for all input files
PRL> on all platforms.

PRL> =head1 DESCRIPTION

PRL> For easier portability, the default input record separator should
PRL> at least match /\015?\012/, so that the following works on as many
PRL> platforms as possible:

-- 
Chaim Frenkel					     Nonlinear Knowledge, Inc.
chaimf@pobox.com				               +1-718-236-0183

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About