![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: can some elaborate the difference between sysread/read sysseek/seekby ikegami (Pope) |
on Sep 27, 2013 at 13:11 UTC ( #1055976=note: print w/replies, xml ) | Need Help?? |
sysread doesn't buffer. read buffers. On the rare occasions you need unbuffered IO (e.g. you want to use select), you need to use sysread and sysseek. (As such, sysread will always return as soon as data is available, if is there is data available than requested.) The rest of the time, you want to use read and seek.
In Section
Seekers of Perl Wisdom
|
|