summaryrefslogtreecommitdiff
path: root/lib/PerlIO.pm
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2011-03-25 12:58:51 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-03-25 10:27:20 -0700
commit8dcd593c9290c0ebce1d08b3f6c1f557f3716fef (patch)
tree0c4ba8d50f9d49d840267d13c4233f0d4de18ca3 /lib/PerlIO.pm
parent3bbe538328a70a48c1d9e0988db83c05d1dbe598 (diff)
downloadperl-8dcd593c9290c0ebce1d08b3f6c1f557f3716fef.tar.gz
Update PerlIO docs for :crlf wrt 7826b36f
7826b36fbbf24cfa659558ee5af3de424faa2d5a changed the behavior of PerlIOCrlf_pushed but :crlf's documentation wasn't updated along with it.
Diffstat (limited to 'lib/PerlIO.pm')
-rw-r--r--lib/PerlIO.pm16
1 files changed, 2 insertions, 14 deletions
diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm
index f4a01974b6..e76e0b43da 100644
--- a/lib/PerlIO.pm
+++ b/lib/PerlIO.pm
@@ -85,24 +85,12 @@ C<:perlio> will insert a C<:unix> layer below itself to do low level IO.
A layer that implements DOS/Windows like CRLF line endings. On read
converts pairs of CR,LF to a single "\n" newline character. On write
-converts each "\n" to a CR,LF pair. Note that this layer likes to be
-one of its kind: it silently ignores attempts to be pushed into the
-layer stack more than once.
+converts each "\n" to a CR,LF pair. Note that this layer will silently
+refuse to be pushed on top of itself.
It currently does I<not> mimic MS-DOS as far as treating of Control-Z
as being an end-of-file marker.
-(Gory details follow) To be more exact what happens is this: after
-pushing itself to the stack, the C<:crlf> layer checks all the layers
-below itself to find the first layer that is capable of being a CRLF
-layer but is not yet enabled to be a CRLF layer. If it finds such a
-layer, it enables the CRLFness of that other deeper layer, and then
-pops itself off the stack. If not, fine, use the one we just pushed.
-
-The end result is that a C<:crlf> means "please enable the first CRLF
-layer you can find, and if you can't find one, here would be a good
-spot to place a new one."
-
Based on the C<:perlio> layer.
=item :mmap