From: Jarkko Hietaniemi Date: Mon, 17 Jun 2002 14:21:55 +0000 (+0000) Subject: :bytes is not the inverse of :crlf, either (from NI-S) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a6445d6f86f35d439d396b8deb840ae3cb7a429e;p=p5sagit%2Fp5-mst-13.2.git :bytes is not the inverse of :crlf, either (from NI-S) p4raw-id: //depot/perl@17272 --- diff --git a/lib/PerlIO.pm b/lib/PerlIO.pm index 1ad295a..9a4da3a 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 ....