develooper Front page | perl.perl5.porters | Postings from January 2011

[perl #80764] "open FH, '<:raw', $filehandle" makes filehandle unbuffered

Thread Next
From:
fawaka@gmail.com via RT
Date:
January 3, 2011 14:19
Subject:
[perl #80764] "open FH, '<:raw', $filehandle" makes filehandle unbuffered
Message ID:
rt-3.6.HEAD-5425-1294092759-1694.80764-14-0@perl.org
The attached patch makes «open FH, ':raw' $filename» do what it
advertises to do: open the file, and then call «binmode FH». Previously
a shortcut was taken that simply wasn't correct, as previously explained.

I have only tested it on Linux though, testing on Windows is required.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About