summaryrefslogtreecommitdiff
path: root/pod/perlrun.pod
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-06-19 12:14:32 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-06-19 12:14:32 +0000
commit0226bbdb9567884ccd3573b0b35272e596fbceba (patch)
tree160f7a384d5a5451a3e0c27711bb3f8a3555734a /pod/perlrun.pod
parent1aa0a167bf7a9e6b041e57a61ada0d7c2e1b7e90 (diff)
downloadperl-0226bbdb9567884ccd3573b0b35272e596fbceba.tar.gz
Un-deprecate :raw after all - just define what it means
more precisely. (Pending approval). p4raw-id: //depot/perlio@17295
Diffstat (limited to 'pod/perlrun.pod')
-rw-r--r--pod/perlrun.pod22
1 files changed, 11 insertions, 11 deletions
diff --git a/pod/perlrun.pod b/pod/perlrun.pod
index 2531838995..2ebc671031 100644
--- a/pod/perlrun.pod
+++ b/pod/perlrun.pod
@@ -909,21 +909,21 @@ C<:perlio> will insert a C<:unix> layer below itself to do low level IO.
=item :raw
-B<Note that the explicit use of the C<:raw> layer is deprecated.>
+Applying the <:raw> layer is equivalent to calling C<binmode($fh)>.
+It makes the stream pass each byte as-is without any translation.
+In particular CRLF translation, and/or :utf8 inuited from locale
+are disabled.
-Arranges for all accesses go straight to the lowest level layer provided
+Arranges for all accesses go straight to the lowest buffered layer provided
by the configration. That is it strips off any layers above that layer.
-(The intent - unless layers are then pushed on top again -
-is to make perl's C<read> behave like C<sysread>.)
-
-Not really useful in PERLIO environment variable, instead just use
-C<:unix> layer explicitly.
In Perl 5.6 and some books the C<:raw> layer (also called a discipline)
-is documented as the inverse of the C<:crlf> layer. That is not really
-the case. If you want UNIX line endings on a platform that normally
-does CRLF translation the appropriate thing to do is to add C<:perlio>
-to PERLIO environment variable.
+is documented as the inverse of the C<:crlf> layer. That is no longer
+the case - other layers which would alter binary nature of the
+stream are also disabled. If you want UNIX line endings on a platform
+that normally does CRLF translation, but still want UTF-8 or encoding
+defaults the appropriate thing to do is to add C<:perlio> to PERLIO
+environment variable.
=item :stdio