diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-17 14:21:55 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-06-17 14:21:55 +0000 |
commit | a6445d6f86f35d439d396b8deb840ae3cb7a429e (patch) | |
tree | 037f73afbae73389774af5cc4b72355859c6f9b1 /lib | |
parent | d5563ed7fd46e9485baaa3b43c79a6a71c7b4740 (diff) | |
download | perl-a6445d6f86f35d439d396b8deb840ae3cb7a429e.tar.gz |
:bytes is not the inverse of :crlf, either (from NI-S)
p4raw-id: //depot/perl@17272
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PerlIO.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index 1ad295a5f1..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,">:bytes","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 .... |