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

RFC 69 (v1) Standardize input record separator (for

Thread Next
From:
Perl6 RFC Librarian
Date:
August 8, 2000 12:47
Subject:
RFC 69 (v1) Standardize input record separator (for
Message ID:
20000808194715.29684.qmail@tmtowtdi.perl.org
This and other RFCs are available on the web at
  http://dev.perl.org/rfc/

=head1 TITLE

Standardize input record separator (for portability)

=head1 VERSION

  Maintainer: N. Hao Ching <spiderboy@cpan.org>
  Date: 08 Aug 2000
  Version: 1
  Mailing List: perl6-language-io@perl.org
  Number: 69

=head1 ABSTRACT

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

=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 $/.

=head1 IMPLEMENTATION

Duhhhh, this is hard.  Dunno core yet.

=head1 REFERENCES

  perlport: http://www.pudge.net/macperl/perlport.html


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