From: Nick Ing-Simmons Date: Sat, 20 Apr 2002 13:37:15 +0000 (+0000) Subject: Add :bytes to POD part. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c1a61b17baa5d77173aa89ea26a8e563597258e5;p=p5sagit%2Fp5-mst-13.2.git Add :bytes to POD part. Remove 'alias' to Encode now it exists as a module. p4raw-id: //depot/perlio@16017 --- diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index bb678a6..6bef21f 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -1,9 +1,9 @@ package PerlIO; -our $VERSION = '1.00'; +our $VERSION = '1.01'; # Map layer name to package that defines it -my %alias = (encoding => 'Encode'); +our %alias; sub import { @@ -98,6 +98,14 @@ and then read it back in. $in = ; close(F); +=item bytes + +This is the inverse of C<:utf8> layer. It turns off the flag +on the layer below so that data read from it is considered to +be "octets" i.e. characters in range 0..255 only. Likewise +on output perl will warn if a "wide" character is written +to a such a stream. + =item raw A pseudo-layer which performs two functions (which is messy, but @@ -105,7 +113,7 @@ necessary to maintain compatibility with non-PerlIO builds of Perl and their way things have been documented elsewhere). Firstly it forces the file handle to be considered binary at that -point in the layer stack, +point in the layer stack, i.e. it turns off any CRLF translation. Secondly in prevents the IO system seaching back before it in the layer specification. Thus: