From: Jarkko Hietaniemi Date: Thu, 12 Jun 2003 11:32:44 +0000 (+0000) Subject: Further perlio doc tweaks. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=18aba96f40a877297fb70961dbd4be7bc6f1c199;p=p5sagit%2Fp5-mst-13.2.git Further perlio doc tweaks. p4raw-id: //depot/perl@19748 --- diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index 2a7f7e7..5777679 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -115,11 +115,11 @@ to a such a stream. =item raw The C<:raw> layer is I as being identical to calling -C - the stream is made suitable for passing binary -data i.e. each byte is passed as-is. The stream will still be -buffered. Unlike earlier versions of perl C<:raw> is I just the -inverse of C<:crlf> - other layers which would affect the binary nature of -the stream are also removed or disabled. +C - the stream is made suitable for passing binary data +i.e. each byte is passed as-is. The stream will still be +buffered. Unlike in the earlier versions of Perl C<:raw> is I +just the inverse of C<:crlf> - other layers which would affect the +binary nature of the stream are also removed or disabled. The implementation of C<:raw> is as a pseudo-layer which when "pushed" pops itself and then any layers which do not declare themselves as suitable diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 76f0e2d..85d3bdf 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -932,8 +932,9 @@ variable are summarised below. For more details see L. =item :bytes -Turns I the C<:utf8> flag for the layer below. -Unlikely to be useful in global PERLIO environment variable. +A pseudolayer that turns I the C<:utf8> flag for the layer below. +Unlikely to be useful on its own in the global PERLIO environment variable. +You perhaps were thinking of C<:crlf:bytes> or C<:perlio:bytes>. =item :crlf @@ -964,12 +965,17 @@ and in general attempts to minimize data copying. C<:perlio> will insert a C<:unix> layer below itself to do low level IO. +=item :pop + +An experimental pseudolayer that removes the topmost layer. +Use with the same care as is reserved for nitroglyserin. + =item :raw -Applying the <:raw> layer is equivalent to calling C. -It makes the stream pass each byte as-is without any translation. -In particular CRLF translation, and/or :utf8 intuited from locale -are disabled. +A pseudolayer that manipulates other layers. Applying the <:raw> +layer is equivalent to calling C. It makes the stream +pass each byte as-is without any translation. In particular CRLF +translation, and/or :utf8 intuited from locale are disabled. 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. @@ -998,12 +1004,13 @@ C =item :utf8 -Turns on a flag on the layer below to tell perl that data sent to the -stream should be converted to perl internal "utf8" form and that data from the -stream should be considered as so encoded. On ASCII based platforms the -encoding is UTF-8 and on EBCDIC platforms UTF-EBCDIC. -May be useful in PERLIO environment variable to make UTF-8 the -default. (To turn off that behaviour use C<:bytes> layer.) +A pseudolayer that turns on a flag on the layer below to tell perl +that data sent to the stream should be converted to perl internal +"utf8" form and that data from the stream should be considered as so +encoded. On ASCII based platforms the encoding is UTF-8 and on EBCDIC +platforms UTF-EBCDIC. May be useful in PERLIO environment variable to +make UTF-8 the default. (To turn off that behaviour use C<:bytes> +layer.) =item :win32