Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: can some elaborate the difference between sysread/read sysseek/seek

by ikegami (Pope)
on Sep 27, 2013 at 13:11 UTC ( #1055976=note: print w/ replies, xml ) Need Help??


in reply to can some elaborate the difference between sysread/read sysseek/seek

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.


Comment on Re: can some elaborate the difference between sysread/read sysseek/seek
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055976]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-12-20 20:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (98 votes), past polls