Syntactic Confectionery Delight | |
PerlMonks |
perlfunc:sysreadby vroom (His Eminence) |
on Jan 18, 2000 at 22:16 UTC ( [id://2139]=perlfunc: print w/replies, xml ) | Need Help?? |
sysreadSee the current Perl documentation for sysread. Here is our local, out-dated (pre-5.6) version: sysread - fixed-length unbuffered input from a filehandle
sysread FILEHANDLE,SCALAR,LENGTH,OFFSET sysread FILEHANDLE,SCALAR,LENGTH
Attempts to read
LENGTH bytes of data into variable
SCALAR from the specified
FILEHANDLE, using the system call
An
OFFSET may be specified to place the read data at some place in the string other than the beginning.
A negative
OFFSET specifies placement at that many bytes counting backwards from the end of the string.
A positive
OFFSET greater than the length of
SCALAR results in the string being padded to the required size with
|
|