From: Jarkko Hietaniemi Date: Mon, 9 Jul 2001 13:24:54 +0000 (+0000) Subject: Document that using :encoding layer requires using Encode. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=422347002777e3c56c6b7046c1bfa5982c3ea6eb;p=p5sagit%2Fp5-mst-13.2.git Document that using :encoding layer requires using Encode. p4raw-id: //depot/perl@11234 --- diff --git a/ext/Encode/Encode.pm b/ext/Encode/Encode.pm index 104da00..27218d1 100644 --- a/ext/Encode/Encode.pm +++ b/ext/Encode/Encode.pm @@ -721,6 +721,7 @@ If Perl is configured to use the new 'perlio' IO system then C provides a "layer" (See L) which can transform data as it is read or written. + use Encode; open(my $ilyad,'>:encoding(iso-8859-7)','ilyad.greek'); print $ilyad @epic; diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index d52d58b..f50cdb3 100644 --- a/lib/PerlIO.pm +++ b/lib/PerlIO.pm @@ -112,7 +112,8 @@ 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