X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FPerlIO.pm;h=bb678a6a07b70108c9918c3801512cb4666d113d;hb=e7ec2331900cd22a50f48dd01fa18bd3026f6253;hp=148a5a8de7edbc38441b46f936a63fe01fefdee3;hpb=47bfe92fb81ca6f2d7b499ac0c77dd56550ac150;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index 148a5a8..bb678a6 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -1,5 +1,7 @@ package PerlIO; +our $VERSION = '1.00'; + # Map layer name to package that defines it my %alias = (encoding => 'Encode'); @@ -39,8 +41,8 @@ PerlIO - On demand loader for PerlIO layers and root of PerlIO::* name space =head1 DESCRIPTION -When an undefined layer 'foo' is encountered in an C or C layer -specification then C code performs the equivalent of: +When an undefined layer 'foo' is encountered in an C or +C layer specification then C code performs the equivalent of: use PerlIO 'foo'; @@ -99,7 +101,7 @@ and then read it back in. =item raw A pseudo-layer which performs two functions (which is messy, but -necessary to maintain compatibility with non-PerlIO builds of perl +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 @@ -112,14 +114,15 @@ layer specification. Thus: Forces the use of C layer even if the platform default, or C default is something else (such as ":encoding(iso-8859-7)") -which would interfere with binary nature of the stream. +(the C<:encoding> requires C) which would interfere with +binary nature of the stream. =back =head2 Defaults and how to override them -If the platform is MS-DOS like and normally does CRLF to "\n" translation -for text files then the default layers are : +If the platform is MS-DOS like and normally does CRLF to "\n" +translation for text files then the default layers are : unix crlf