Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: read and sysread

by ambrus (Abbot)
on Mar 02, 2005 at 13:37 UTC ( [id://435817]=note: print w/replies, xml ) Need Help??


in reply to read and sysread

  1. Sysread may return a parital result (that is, read less characters then requested) any time. Indeed, it must return exactly one packet with datagram sockets like udp. Read cannot do that except at the end of file.
  2. Sysread bypasses buffering, and also perlio layers to some extent.
  3. Update: sysread cannot be tied.
  4. Possibly more I don't know about.

As a general rule, use read unless you have a reason to use sysread.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-20 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found