develooper Front page | perl.perl5.porters | Postings from May 2003

Re: Meaning of sysread()

Thread Previous | Thread Next
May 24, 2003 14:14
Re: Meaning of sysread()
Message ID:
Why would sysread ever need anything but byte semantics ?
For a normal read there's already perl read() itself, which
can do all cooked semantics one wants. sysread's only reason
of existence is raw reads.

I'd vote to just document it to be always raw bytes.

Or if you must for backward compatibility on windows,
(though personally i'd consider \r\n games on sysread
a windows bug), at least define sysread on a
binmode handle to be *ALWAYS* byte semantics.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About