Front page | perl.perl5.porters |
Postings from May 2003
Re: Meaning of sysread()
Thread Previous
|
Thread Next
From:
perl5-porters
Date:
May 24, 2003 14:14
Subject:
Re: Meaning of sysread()
Message ID:
baonc9$i3u$1@post.home.lunix
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