RFC 69 (v1) Standardize input record separator (for
[email protected] (Perl6 RFC Librarian) 8 Aug 2000 19:47:15 -0000
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Date: 08 Aug 2000 Version: 1 Mailing List: [email protected] 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