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 <[EMAIL PROTECTED]> 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.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to