:bytes is not the inverse of :crlf, either (from NI-S)
Jarkko Hietaniemi [Mon, 17 Jun 2002 14:21:55 +0000 (14:21 +0000)]
p4raw-id: //depot/perl@17272

lib/PerlIO.pm

index 1ad295a..9a4da3a 100644 (file)
@@ -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 ....