Perl syswrite Function



Description

This function attempts to write LENGTH bytes from SCALAR to the file associated with FILEHANDLE. If OFFSET is specified, then information is read from OFFSET bytes in the supplied SCALAR. This function uses the C/operating system write( ) function, which bypasses the normal buffering.

Syntax

Following is the simple syntax for this function −

syswrite FILEHANDLE, SCALAR, LENGTH, OFFSET

syswrite FILEHANDLE, SCALAR, LENGTH

Return Value

This function returns undef on error and Integer, number of bytes written on success.

perl_function_references.htm
Advertisements