NAME
PerlIO::eol - PerlIO layer for normalizing line endings
VERSION
This document describes version 0.01 of PerlIO::eol, released October 7, 2004.
SYNOPSIS
binmode STDIN, ":raw:eol(LF)";
binmode STDOUT, ":raw:eol(CRLF)";
DESCRIPTION
This layer normalizes any of CR
, LF
and CRLF
into the designated line ending. It works for both input and output handles.
It is advised to pop any potential :crlf
or encoding layers before this layer; this is usually done using a :raw
prefix.
CAVEATS
If the source stream ends with a single CR
, it may be silently dropped; this is a limitation inherited from PerlIO::nline's design. Patches to implement the correct Flush
and Unread
handlers are most welcome.
AUTHORS
Autrijus Tang <autrijus@autrijus.org>
Based on PerlIO::nline by Ben Morrow, <PerlIO-eol@morrow.me.uk>.
COPYRIGHT
Copyright 2004 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.