summaryrefslogtreecommitdiff
path: root/lib/PerlIO.pm
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-06-17 14:50:35 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-06-17 14:50:35 +0000
commit1cbfc93d1589e4f5f6103e097177be6f791b2cb2 (patch)
treee61e2f2736138e91ea813b5aee291f3ac147c1e6 /lib/PerlIO.pm
parentaca0daca701f7dcdb767d1bc406a8942960007bc (diff)
downloadperl-1cbfc93d1589e4f5f6103e097177be6f791b2cb2.tar.gz
Integrate mainline
p4raw-id: //depot/perlio@17274
Diffstat (limited to 'lib/PerlIO.pm')
-rw-r--r--lib/PerlIO.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm
index 6bef21fe18..9a4da3a2a3 100644
--- a/lib/PerlIO.pm
+++ b/lib/PerlIO.pm
@@ -33,8 +33,10 @@ PerlIO - On demand loader for PerlIO layers and root of PerlIO::* name space
=head1 SYNOPSIS
- open($fh,">:crlf","my.txt")
- open($fh,">:raw","his.jpg")
+ open($fh,">:crlf", "my.txt"); # portably open a text file for writing
+
+ open($fh,"<","his.jpg"); # portably open a binary file for reading
+ binmode($fh);
Shell:
PERLIO=perlio perl ....
@@ -108,6 +110,8 @@ to a such a stream.
=item raw
+B<Note that the explicit use of the C<raw> layer is deprecated.>
+
A pseudo-layer which performs two functions (which is messy, but
necessary to maintain compatibility with non-PerlIO builds of Perl
and their way things have been documented elsewhere).