Document that using :encoding layer requires using Encode.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 9 Jul 2001 13:24:54 +0000 (13:24 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 9 Jul 2001 13:24:54 +0000 (13:24 +0000)
p4raw-id: //depot/perl@11234

ext/Encode/Encode.pm
lib/PerlIO.pm

index 104da00..27218d1 100644 (file)
@@ -721,6 +721,7 @@ If Perl is configured to use the new 'perlio' IO system then
 C<Encode> provides a "layer" (See L<perliol>) which can transform
 data as it is read or written.
 
+    use Encode;
     open(my $ilyad,'>:encoding(iso-8859-7)','ilyad.greek');
     print $ilyad @epic;
 
index d52d58b..f50cdb3 100644 (file)
@@ -112,7 +112,8 @@ layer specification.  Thus:
 
 Forces the use of C<perlio> layer even if the platform default, or
 C<use open> default is something else (such as ":encoding(iso-8859-7)")
-which would interfere with binary nature of the stream.
+(the C<:encoding> requires C<use Encode>) which would interfere with
+binary nature of the stream.
 
 =back